laravel laravel-permission assign role to user code example
Example 1: laravel roles and permissions
composer require spatie/laravel-permission
Example 2: use backpack and laravel-permission to edit user roles
composer require backpack/permissionmanager