From ba95ccd32e23add451b71212c929de014627e085 Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Fri, 10 Jan 2025 14:20:05 -0500 Subject: [PATCH] Clarification for Laravel 11 optional provider registration Replaces and Closes #2786 --- docs/installation-laravel.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/installation-laravel.md b/docs/installation-laravel.md index f7cb644f..07e4ab54 100644 --- a/docs/installation-laravel.md +++ b/docs/installation-laravel.md @@ -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: