set values on the auth::user controller laravel -


so far laravel site login worked default laravel login attempt function, per new reuqirment, here after login checking performed third party api, after successful authentication checking, application redirect home page.

in application lot of place, have used " auth " controller variable value. (ie) auth::user()->name, auth::guest() etc.

due third party checking not able value on " auth " controller, when try print auth::user()->name, getting empty value, please advise how set values auth::user()->name etc after third party login checking.

please advice

got solution

$user =user::firstbyattributes(['email' => $email]); auth::login($user); 


Comments

Popular posts from this blog

c# - Where does the .ToList() go in LINQ query result -

Listeners to visualise results of load test in JMeter -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -