6 months ago

Can't use Auth::user() in a Controller constructor

Posted 6 months ago by DevMaster

Hello LaraV.I.Ps,

Is it right that, in a Controller constructor, I am not able to access Auth::user() [I mean, it is null] ?

Has the Auth::user() object not been bootstrapped yet so early in the flow?

Just curious really, thanks.

Kind regards, Dev

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