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
Super-Admins are a common feature. The following approach allows that when your Super-Admin user is logged in, all permission-checks in your app which call `can()` or `@can()` will return true.
131
131
132
132
- Create a role named `Super-Admin`. (Or whatever name you wish; but use it consistently just like you must with any role name.)
133
-
- Add a Gate::before check in your `AuthServiceProvider`:
133
+
- Add a Gate::before check in your `AuthServiceProvider` (or `AppServiceProvider` since Laravel 11):
0 commit comments