golden
1224
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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.