2024-11-07 17:12:11 +00:00
|
|
|
/// ToDo: explain what is this and how I generated this code
|
2024-11-07 16:09:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-07 17:12:11 +00:00
|
|
|
### add roles to users using Spatie Laravel-Permission's Package
|
2024-11-07 16:09:43 +00:00
|
|
|
|
2024-11-07 17:12:11 +00:00
|
|
|
```
|
|
|
|
composer require spatie/laravel-permission
|
|
|
|
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
|
|
|
|
php artisan migrate
|
2024-11-07 16:09:43 +00:00
|
|
|
|
2024-11-07 17:12:11 +00:00
|
|
|
```
|
2024-11-07 16:09:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|