Download the PHP package zohaib482/laravel-simple-rbac without Composer
On this page you can find all versions of the php package zohaib482/laravel-simple-rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zohaib482/laravel-simple-rbac
More information about zohaib482/laravel-simple-rbac
Files in zohaib482/laravel-simple-rbac
Download zohaib482/laravel-simple-rbac
More information about zohaib482/laravel-simple-rbac
Files in zohaib482/laravel-simple-rbac
Vendor zohaib482
Package laravel-simple-rbac
Short Description Simple and lightweight Role-Based Access Control (RBAC) package for Laravel 11+ and 12 with authentication and email verification support
License MIT
Package laravel-simple-rbac
Short Description Simple and lightweight Role-Based Access Control (RBAC) package for Laravel 11+ and 12 with authentication and email verification support
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-simple-rbac
Laravel Simple RBAC
A simple, lightweight Role-Based Access Control (RBAC) package for Laravel with built-in authentication and email verification support.
Features
- Role & permission management (many-to-many)
- Built-in authentication + email verification flow
- Bootstrap 5 styled auth views (login, register, verify-email, dashboard)
- Middleware:
role:admin,permission:manage-users, etc. - Blade directives:
@role,@permission,@anyrole - Easy integration via trait on User model
- Configurable (user model, default role, redirect paths)
Requirements
- PHP ^8.2
- Laravel ^12.0
Installation
-
Install the package via Composer:
- Publish configuration, views and migrations,Seeder:
Seeding Roles and Permissions
After publishing and running migrations, you need to seed the default roles and permissions:
Publish the seeder (if not already published):
Run the seeder:
Or add it to your DatabaseSeeder.php:
-
Run migrations and seed default roles/permissions:
php artisan migrate - Add the HasRoles trait to your User model (app/Models/User.php):
Quick Usage Examples
Assign roles
Check roles & permissions
Protect routes with middleware
Blade directives
Configuration
After publishing, edit config/simplerbac.php:
All versions of laravel-simple-rbac with dependencies
PHP Build Version
Package Version
The package zohaib482/laravel-simple-rbac contains the following files
Loading the files please wait ...