A Software Developer who is geared towards building high-performing and innovative products following best practices. I help you become a great Backend Engineer @ https://masteringbackend.com
I'm Having errors after implementing this.
I logged in as academy then try to visit the admin dashboard by typing the route to it in the browser and i got this -> "Call to undefined method Illuminate\Auth\AuthManager::user()"
In Martin's implementation there's a typo of the parenthesis when calling the Auth facade... So instead of Auth()::user()->role, it should be Auth::user()->role
A Software Developer who is geared towards building high-performing and innovative products following best practices. I help you become a great Backend Engineer @ https://masteringbackend.com
A Software Developer who is geared towards building high-performing and innovative products following best practices. I help you become a great Backend Engineer @ https://masteringbackend.com
I'm Having errors after implementing this.
I logged in as
academy
then try to visit theadmin
dashboard by typing the route to it in the browser and i got this ->"Call to undefined method Illuminate\Auth\AuthManager::user()"
In Martin's implementation there's a typo of the parenthesis when calling the Auth facade... So instead of
Auth()::user()->role
, it should beAuth::user()->role
Oh that's true.. I will fix that..
I'll replicate it soon, probably I just have a typo somewhere.
Sure. I will be expecting.