laravel-roles maintained by curvestech
Description
Simple role > permissions package for laravel apps.
Author
Last update
2025/10/29 06:40
(dev-main)
License
Downloads
0
Laravel Roles Package
A simple package to add roles and permissions support to your Laravel application.
Features
- Artisan command to install migrations for roles and permissions.
- Migration stubs for
roles,permissions, and pivot tables.
Installation
-
Require the package via Composer:
composer require curvestech/laravel-roles -
Register the service provider (if not using auto-discovery):
// config/app.php 'providers' => [ Curvestech\LaravelRoles\RolesServiceProvider::class, ],
Usage
-
Run the install command to publish migrations:
php artisan roles:install -
Run migrations:
php artisan migrate
Customization
- Edit the migration stubs in
src/stubs/if you need to customize the tables.
License
MIT