+ 1

How can I access user in the constructor of parent controller laravel 6? The Auth::user() == null

I try to access user but they say that the Middleware doesn't run yet it run after the constructor.

10th Aug 2020, 10:04 AM
Abdessamad Ait Si Bella
Abdessamad Ait Si Bella - avatar
2 Antworten
0
Hello friends I do some research and I found the solution thanks a lot
12th Aug 2020, 7:51 AM
Abdessamad Ait Si Bella
Abdessamad Ait Si Bella - avatar
0
The solution is to define a closure and there we can access user
12th Aug 2020, 7:52 AM
Abdessamad Ait Si Bella
Abdessamad Ait Si Bella - avatar