A Laravel package to manage user roles.
Register the Service Provider (if not auto-discovered)
composer require baberuka/systemroles
If you’re not using Laravel auto-discovery, register the provider manually in config/app.php. Add the SystemRolesServiceProvider calls to the providers section.
'providers' => [
BabeRuka\SystemRoles\SystemRolesServiceProvider::class,
],
Publishing
php artisan vendor:publish --tag=systemroles-config
php artisan vendor:publish --tag=systemroles-views
php artisan vendor:publish --tag=systemroles-assets
Run the Migrations
php artisan systemroles:migrate
php artisan migrate
php artisan db:seed --class="BabeRuka\SystemRoles\Database\Seeders\SystemRolesSeeder"
Usage
Visit
/systemroles/admin/roles/index
to check if it’s working.
Was this article helpful to you?
No
Yes