Skip to content

Commit

Permalink
[docs] remove registerPolicies call that was removed with L10.0.2
Browse files Browse the repository at this point in the history
The line was previously there just to be a goalpost, to give an idea where to put the suggested new code.
  • Loading branch information
drbyte authored Aug 25, 2023
1 parent bd2c1e6 commit ba5a7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-usage/super-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AuthServiceProvider extends ServiceProvider
{
public function boot()
{
$this->registerPolicies();
//...

// Implicitly grant "Super Admin" role all permissions
// This works in the app by using gate-related functions like auth()->user->can() and @can()
Expand Down

0 comments on commit ba5a7be

Please sign in to comment.