curvestech / laravel-roles
Simple role > permissions package for laravel apps.
dev-main
2025-10-29 05:40 UTC
Requires
- php: ^8.0
- illuminate/console: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/database: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/http: ^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0|^12.0
This package is auto-updated.
Last update: 2026-03-01 00:48:25 UTC
README
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