Assign to users roles and permissions easily with Maravel-permissions

laravel permission


composer require inani/maravel-permissions


Then include the service provider inside config/app.php. (You can skipp it if it's in Laravel 5.5 or higher)

'providers' => [

Publish migrations, and migrate

php artisan vendor:publish

You can edit 2020_05_27_221346_add_marvel_id_to_users migration to link it with the correct user table

And then migrate

php artisan migrate

Source Code