sandstorm

sandstorm

Member Since 2 Years Ago

Experience Points
390
Total
Experience

4,610 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
390 XP
Apr
22
2 years ago
Activity icon

Replied to Remember Me

i can not use the Auth i have another table called logfile thanks anyway

Apr
21
2 years ago
Activity icon

Started a new conversation Remember Me

hello guys i want to make the remember me checkbox and i want to save the user info into cookies so next time when try to login he find the user name and password in their fields i try to use :

$rememberMe = false;
                        if(isset($req->remember_me)){
                          $rememberMe = true;
                        }

                        if(Sentinel::authenticate($req->all(), $rememberMe)){
                          $slug = Sentinel::getUser()->roles()->first()->slug();
                        }

the cookies was set, i see it in the chrome settings but it dose not do as i expect

Apr
20
2 years ago
Activity icon

Replied to Scheduler Problem

@ahuggins i am using xampp apache

Activity icon

Started a new conversation Scheduler Problem

hello everyone i have laravel 5.2 i try to set up the scheduler but i could not i made the console and registerd it successfuly when try to make it work by scheduler, it did not work. i try the following command in cmd:

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

The system cannot find the path specified.

i try to type crontab -e:

C:\xampp\htdocs\training-portal>crontab -e

'crontab' is not recognized as an internal or external command,
operable program or batch file.
Activity icon

Replied to Sending Email After Specific Date

@vmitchell85 i change it this way C:>* * * * * php /xampp/htdocs/training-portal/artisan schedule:run >> /dev/null 2>&1 The system cannot find the path specified.

as you see still have problem

is it correct path? my actual path is C:\xampp\htdocs\training-portal

Activity icon

Replied to Sending Email After Specific Date

yes i work in windows 10 if so, there is no other why?

Activity icon

Started a new conversation Scheduler Problem

hello everyone i have laravel 5.2 i try to set up the scheduler but i could not i made the console and registerd it successfuly when try to make it work by scheduler, it did not work. i try the following command in cmd:

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

The system cannot find the path specified.

i try to type crontab -e:

C:\xampp\htdocs\training-portal>crontab -e

'crontab' is not recognized as an internal or external command,
operable program or batch file.
Activity icon

Replied to Sending Email After Specific Date

thanx all of you guys @jekinney @bobbybouwmann @willvincent @martinbean problems never ends. now i try to set up scheduler

i try this command

          • php /path/to/artisan schedule:run >> /dev/null 2>&1 the error is The system cannot find the path specified.

i try to type in cmd "crontab -e" the error is 'crontab' is not recognized as an internal or external command, operable program or batch file.

Apr
19
2 years ago
Activity icon

Replied to Sending Email After Specific Date

@willvincent do you mean i use the method daily in Scheduler then i make if condition if that date more than 50 days, the function sends the email?

Activity icon

Started a new conversation Sending Email After Specific Date

hello guys i want to prepare an email to be sent after 50 days when the user click on a button then go to controller i found "later" method but i did not work, its sends the email immediately. also i found "scheduler" but i could not understand how to work with it because its about every day , monthly, yearly,... what i want is after specific date only may laravel is 5.2

Activity icon

Replied to The Uploaded File In Laravel Project Can Not Be Downloaded

thanks man it fixes a lot of problems

Apr
18
2 years ago
Activity icon

Replied to How To Make Attachment In Laravel Email

i try to send email in laravel 5.2 and its works. my problem is how to convert a view with its data to PDF then attach it to email i try this

$view = View::make('printPreview', compact('printqu','printqu2')); $contents = $view->render(); $pdf = App::make('dompdf.wrapper'); $pdf->loadHTML($contents); $output = $pdf->output();

Storage::put('app/folderletter/your-file.pdf', $output);

$datastd['fname']=$printqu->std_fname; $datastd['mname']=$printqu->std_mname; $datastd['lname']=$printqu->std_lname; $datastd['email']=$printqu->std_email; $datastd['email']=$printqu->std_email; $datastd['orgname']=$printqu->name; $datastd['depname']=$printqu->Dep_Name; $file = storage_path('app/folderletter/your-file.pdf');

Mail::send('email.train_form',['datastd'=>$datastd], function($mail) use ($datastd,$file){ //$pdf = PDF::loadView('printPreviewm',['datastd'=>$datastd]); $mail->to($datastd['email'],$datastd['fname'],$datastd['mname'],$datastd['lname'],$datastd['orgname'],$datastd['depname']) ->from('[email protected]')->subject('Training Forms') ->attach('app/folderletter/your-file.pdf', [ 'as' => 'name.pdf', 'mime' => 'application/pdf', ]); });

i saves the document in Storeag but also the same time out!!!! so the message not sent.

Activity icon

Started a new conversation The Uploaded File In Laravel Project Can Not Be Downloaded

please i need your help in this i successed in uploading file in laravel project,i saved the file name and path in database, but in another view when trying to downloaded it, its appear in the bottom of chrome browser but with message that " can not find the file"

the file path is C:\xampp\htdocs\my_project_name\storage\app\uploads

the code in the view

  <th> <a href="{{$dou->dep_path}}" download="{{$dou->File_name}}">
                                <button type="button" class="btn btn-primary">
                                    <i class="fa fa-download">
                                      Download
                                    </i> </button>
                            </a>
Activity icon

Replied to How To Make Attachment In Laravel Email

thank you Fringe but i could not understand that way you say. should i make 'printPreviewm.pdf' instead of 'name.pdf'? and what about 'mime' => 'application/pdf', its looks like a path.

Activity icon

Started a new conversation How To Make Attachment In Laravel Email

i try to send email in laravel 5.2 and its works. my problem is how to convert a view with its data to PDF then attach it to email i try this

code start

$datastd['fname']=$printqu->std_fname; $datastd['mname']=$printqu->std_mname; $datastd['lname']=$printqu->std_lname; $datastd['email']=$printqu->std_email; $datastd['email']=$printqu->std_email; $datastd['orgname']=$printqu->name; $datastd['depname']=$printqu->Dep_Name;

Mail::send('email.train_form',['datastd'=>$datastd], function($mail) use ($datastd){

                       $mail->to($datastd['email'],$datastd['fname'],$datastd['mname'],$datastd['lname'],$datastd['orgname'],$datastd['depname'])->attachData($datastd, 'printPreviewm.pdf')->from('[email protected]')->subject('Training Forms');
                               });

code ends

the error is time out please i need your help in this