From 456fac14c4c3aba7e71bf5f2862d7cf1ee2d119c Mon Sep 17 00:00:00 2001 From: Bezhan Salleh Date: Thu, 21 Nov 2024 23:28:37 +0100 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a34319f..6dbc3d4 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,19 @@ composer require bezhansalleh/filament-shield ``` ### 2. Configure Auth Provider -Add the `HasRoles` trait to your User model: +#### 2.1. Publish the config and setup your auth provider model. +```bash +php artisan vendor:publish --tag="filament-shield-config" +``` +```php +//config/filament-shield.php +... + 'auth_provider_model' => [ + 'fqcn' => 'App\\Models\\User', + ], +... +``` +#### 2.2 Add the `HasRoles` trait to your auth provider model: ```php use Spatie\Permission\Traits\HasRoles;