Skip to content

Commit

Permalink
Clarification for Laravel 11 optional provider registration
Browse files Browse the repository at this point in the history
Replaces and Closes #2786
  • Loading branch information
drbyte authored Jan 10, 2025
1 parent d4b9db4 commit ba95ccd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/installation-laravel.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ Package Version | Laravel Version

composer require spatie/laravel-permission

4. Optional: The service provider will automatically get registered. Or you may manually add the service provider in your `config/app.php` file:

```
'providers' => [
// ...
Spatie\Permission\PermissionServiceProvider::class,
];
```
4. Optional: The **`Spatie\Permission\PermissionServiceProvider::class`** service provider will automatically get registered. Or you may manually add the service provider to the array in your `config/providers.php` (or `config/app.php` in Laravel 10 or older) file.

5. **You should publish** [the migration](https://github.com/spatie/laravel-permission/blob/main/database/migrations/create_permission_tables.php.stub) and the [`config/permission.php` config file](https://github.com/spatie/laravel-permission/blob/main/config/permission.php) with:

Expand Down

0 comments on commit ba95ccd

Please sign in to comment.