Janaka

Janaka

Member Since 2 Years Ago

Experience Points 8,310
Experience
Level
Lessons Completed 82
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

02 Mar
10 months ago

Janaka left a reply on Is It Safe To Add `stream` Key In Mail.php In Laravel?

Since this is only a configuration key and does not contain any sensitive information, I dont see anything wrong :)

Janaka started a new conversation Sharing Session With Laravel 5.1 And Laravel 5.5 App

Hi, I'm trying to share sessions between Laravel 5.5 app and a Laravel 5.1 app. I configured sessions configurations of Laravel 5.5 app to 5.1 app (since 5.1 app is the master app). I'm sharing the same domain and structure is as follows, www.<5.1 app>.com/<5.5 app name>

I was able to see sessions in 5.5 app when I set sessions in 5.1 app . But the problem is I cannot seems to share Auth users across these two apps. I understand there are few different changes in Authenticating methods for an example in 5.5 app it looks for the session key like login_web_xxx wherein 5.1 app it looks for login_xxxx.

I suppose if I change that session key, I might be able to access 5.1 user data. In 5.5 it uses following method to get the session key for the user (SessionGuard line 616)

/** * Get a unique identifier for the auth session value. * * @return string */ public function getName() { return 'login_'.$this->name.'_'.sha1(static::class); }

Can anyone suggest me what the logic it has used to get the session key in Laravel 5.1 app?

Thank you.

12 Mar
1 year ago

Janaka started a new conversation Required_with Validation With Exists Validation Not Working

Hi, I have this validation rule 'declaration_of_owner' => 'required_with:different_owner|exists:uploads,uid',

where different_owner is a checkbox. So the idea is to check the value of declaration_of_owner field match a database record is the different_owner checkbox is checked.

The problem is above rule ignores required_with:different_owner rule and try to validate exists rule if the checkbox is unchecked.

Any help to tackle this issue is highly appreciated,

Thank you