golden
1121
12
Laravel

Auth::user() in controller construct

Posted 2 years ago by golden

Hey guys! After updating from 5.2 to 5.3 I noticed that Auth::user() returns NULL to me when I call it in __construct() (but in action it return's user as always), wtf? I need to get user in controllers construct.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.