You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this library for lumen project, so I want to define the Super Admin like in your documentation to have all roles like this in my service AuthServiceProvider:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using this library for lumen project, so I want to define the Super Admin like in your documentation to have all roles like this in my service AuthServiceProvider:
this code is never trigered when i check in RoleMiddleware I found this:
if (! Auth::guard($guard)->user()->hasAnyRole($roles)) { throw UnauthorizedException::forRoles($roles); }
I dont know how the code above well working like you said in your documentation, because the Gard is executed before the gate.
Beta Was this translation helpful? Give feedback.
All reactions