iocod / laravel-permissions
Lightweight permission system for Laravel Applications
v1.0.0
2026-02-12 10:31 UTC
Requires
- php: ^8.1
- illuminate/support: ^11.0|^12.0
Requires (Dev)
- driftingly/rector-laravel: ^2.1
- laravel/pint: ^1.27
- orchestra/testbench: ^9.0
- phpstan/phpstan: ^2.1
- rector/rector: ^2.3
This package is not auto-updated.
Last update: 2026-03-27 11:12:12 UTC
README
Lightweight permission system for Laravel Applications.
Installation
You can install the package via composer:
composer require iocod/laravel-permissions
Setup
Publish the configuration file:
php artisan vendor:publish --tag="permissions-config"
Usage
Add the HasPermissions trait to your User model:
use Iocod\LaravelPermissions\Traits\HasPermissions; class User extends Authenticatable { use HasPermissions; }
License
The MIT License (MIT). Please see License File for more information.