Assign to users roles and permissions easily with Maravel-permissions

laravel permission

Download

composer require inani/maravel-permissions

Installation

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

'providers' => [
    ...
    Inani\Maravel\Providers\MaravelServiceProvider::class,
    ...
];

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

https://github.com/akiyamaSM/maravel-permissions