Download the PHP package fbpkg/laravel-rbac without Composer
On this page you can find all versions of the php package fbpkg/laravel-rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fbpkg/laravel-rbac
More information about fbpkg/laravel-rbac
Files in fbpkg/laravel-rbac
Package laravel-rbac
Short Description A lightweight and flexible RBAC package for Laravel.
License MIT
Homepage https://github.com/fbpkg/laravel-rbac
Informations about the package laravel-rbac
Laravel RBAC
A lightweight, framework-friendly Role-Based Access Control (RBAC) package for Laravel.
Designed for projects that need a simple, flexible and extensible authorization layer based on Roles and Permissions, without unnecessary complexity.
Features
- Role and Permission management
- Polymorphic role assignments
- Full-access roles
- Route middleware for roles and permissions
- Configurable models
- Configurable table names
- Laravel 11 & 12 support
- PHP 8.2+
Requirements
- PHP 8.2+
- Laravel 11.x / 12.x
Installation
Install the package using Composer.
Configuration
Publish the configuration file to customize the package.
Available options include:
- Role model
- Permission model
- Database table names
Database
Publish the migration.
Run the migration.
Usage
Add the HasRoles trait
Create a role
Create a role with unrestricted access.
Create a permission
Assign roles
Assign multiple roles.
Synchronize roles.
Remove roles.
Check roles
Assign permissions
Assign multiple permissions.
Synchronize permissions.
Remove permissions.
Check permissions
Full Access Roles
Roles with the has_full_access flag automatically bypass all permission checks.
This is useful for roles such as Developer, Owner, or other privileged system accounts.
Route Middleware
Protect routes by role.
Protect routes by permission.
License
This package is open-sourced software licensed under the MIT License.
All versions of laravel-rbac with dependencies
illuminate/auth Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0