efureev / laratrust
This package provides a flexible way to add Role-based Permissions to Laravel
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
v6.1.0
2022-03-25 06:35 UTC
Requires
- php: ^8.0
- kkszymanowski/traitor: ^0.2.5
- laravel/framework: 8.83
Requires (Dev)
- mockery/mockery: ^1.5
- orchestra/testbench: ^6.24
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2022-03-25 06:39:05 UTC
README
Laratrust Fork (Laravel Package)
Laratrust is an easy and flexible way to add roles, permissions and teams authorization to Laravel 5 (>=5.6).
Installation
composer require "efureev/laratrust:5.3.*"
What does Laratrust support?
- Multiple user models.
- Multiple roles and permissions can be attached to users.
- Multiple permissions can be attached to roles.
- Roles and permissions verification.
- Roles and permissions caching.
- Events when roles and permissions are attached, detached or synced.
- Multiple roles and permissions can be attached to users within teams.
- Objects ownership verification.
- Multiple guards for the middleware.
- Laravel gates and policies.
License
Laratrust is open-sourced software licensed under the MIT license.
Contributing
Please report any issue you find in the issues page. Pull requests are more than welcome.