Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cklei-carly committed Aug 12, 2024
1 parent 287347d commit 737f0d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ This is an authentication plugin for Filament Admin with Laravel-permission

## Installation

1. You can install the package via composer:
1. Ensure you have already installed the Filament panel.
2. You can install the package via composer:
```bash
composer require solution-forest/filament-access-management
```

2. Add the necessary trait to your User model:
3. Add the necessary trait to your User model:

```php
Expand All @@ -28,15 +29,14 @@ This is an authentication plugin for Filament Admin with Laravel-permission
}
```

3. **Clear your config cache**:
4. **Clear your config cache**:
```bash
php artisan optimize:clear
# or
php artisan config:clear
```


4. Register the plugin in your Panel provider:
5. Register the plugin in your Panel provider:
> **Important: Register the plugin in your Panel provider after version 2.x**
``` bash
use SolutionForest\FilamentAccessManagement\FilamentAccessManagementPanel;
Expand All @@ -48,7 +48,7 @@ This is an authentication plugin for Filament Admin with Laravel-permission
}
```

5. Then execute the following commands:
6. Then execute the following commands:
```bash
php artisan filament-access-management:install
```
Expand Down

0 comments on commit 737f0d6

Please sign in to comment.