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
As a first time reader of the package documentation (which by the way is really good!), I realized that in the seeding example we use 'super-admin'. I haven't tried it yet, but I believe these two should be consistent to work, so I propose we change it here to super-admin as well.
Copy file name to clipboardExpand all lines: docs/basic-usage/super-admin.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Then you can implement the best-practice of primarily using permission-based con
9
9
10
10
11
11
## `Gate::before`
12
-
If you want a "Super Admin" role to respond `true` to all permissions, without needing to assign all those permissions to a role, you can use [Laravel's `Gate::before()` method](https://laravel.com/docs/master/authorization#intercepting-gate-checks). For example:
12
+
If you want a "super-admin" role to respond `true` to all permissions, without needing to assign all those permissions to a role, you can use [Laravel's `Gate::before()` method](https://laravel.com/docs/master/authorization#intercepting-gate-checks). For example:
13
13
14
14
In Laravel 11 this would go in the `boot()` method of `AppServiceProvider`:
15
15
In Laravel 10 and below it would go in the `boot()` method of `AuthServiceProvider.php`:
@@ -18,10 +18,10 @@ use Illuminate\Support\Facades\Gate;
18
18
// ...
19
19
public function boot()
20
20
{
21
-
// Implicitly grant "Super Admin" role all permissions
21
+
// Implicitly grant "super-admin" role all permissions
22
22
// This works in the app by using gate-related functions like auth()->user->can() and @can()
0 commit comments