how to assign permission directly user in laravel spatie code example
Example 1: laravel permission
composer require spatie/laravel-permission
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
Example 2: spatie/laravel-permission
composer require spatie/laravel-permission
'providers' => [
Spatie\Permission\PermissionServiceProvider::class,
];
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan optimize:clear
php artisan config:clear
php artisan migrate