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