Member Since 3 Years Ago

Experience Points 141,940
Experience Level 29

3,060 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 1412
Best Reply Awards 0
Best Reply
  • 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.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    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.

09 May
3 months ago

Payman started a new conversation Alternative For Valet .test Domain


I am using laravel valet. Already I set valet to use .dev and .app domain in local environments but after facing problem with .dev and .app I changed valet domain to .test .

Today I want to use google api with socialite.

The problem is that when I want to create OAuth client ID in google, it does not accept ".test" domain for "Authorized redirect URIs". It says: Invalid Redirect: must end with a public top-level domain (such as .com or .org). Invalid Redirect: domain must be added to the authorized domains list before submitting.

While it accepts .test domain for "Authorized JavaScript origins" part!

I saw most of the tutorials when using socialite and google api they set these in google console.




and google accepts them without problem with domain and generate the key and secret but I am not using mamp and I am going to continue with valet.

I would be so thankful if you guide me about what is the alternative domain for .test which works fine in valet and also google accepts it?

Best Regards,

02 Mar
5 months ago

Payman started a new conversation How To Redirect In A Trait With Session?

Hi, Could you please help me to understand what is happening and how I can solve it?

The problem is:

In a Trait redirect() with session does not work together. The system will redirect to the defined path but it does not show the session message.

The Laravel version is 5.7 but it seems this is seen in the other Laravel versions too!

In the following examples the system will redirect but the $msg won't be shown.

Please put these in a Trait and try it:

$msg= 'contact us';
return redirect('/login')->withError($msg);

And also:

$msg= 'contact us';
session()->flash('error', $msg);
return redirect('/login');


One way to obtain the session is:

If I set a session in a Trait, I can get it in the Controller like this:

When I put this in a Trait:

$msg= 'contact us';
session()->flash('error', $msg);

I can get it in a Controller and it also $msg is delivered to the view file.

  return redirect('/login');

But this is not what I want and I want to set the redirect method in the Trait too!

Thank you so much for your help in advance.

Best Regards,