Laravel santigarcor/laratrust is a package designed to add role-based permissions to Laravel applications. It provides a flexible way to manage roles and permissions, allowing for multiple user models, roles, and permissions. The package supports multiple guards for the middleware, a simple administration panel, and compatibility with Laravel's policies and gates system.
Key Features:
- Role-Based Permissions: Manage roles and permissions for users.
- Multiple User Models: Supports multiple user models.
- Multiple Roles and Permissions: Assign multiple roles and permissions to users.
- Roles and Permissions Verification: Verify roles and permissions.
- Roles and Permissions Caching: Cache roles and permissions for performance.
- Events: Trigger events when roles and permissions are added, removed, or synced.
- Teams: Manage roles and permissions for teams.
- Multiple Guards: Supports multiple guards for the middleware.
- Simple Administration Panel: Includes a simple administration panel for roles and permissions.
- Laravel Gates and Policies: Compatible with Laravel's policies and gates system.
Installation and Usage:
1. Installation: Install the package via Composer.
2. Configuration: Configure the package according to the documentation.
3. Usage: Use the package's API to manage roles and permissions.
Compatibility:
- Laravel Versions: Compatible with Laravel versions 5.2 and above.
- Role and Permission Versions: Compatible with role and permission versions 4.0 and above.
Documentation:
For detailed documentation and examples, refer to the official documentation on GitHub or the package's website[1][2][3][4][5].
Citations:[1] https://packagist.org/packages/santigarcor/laratrust
[2] https://github.com/santigarcor/laratrust
[3] https://laratrust.santigarcor.me/docs/6.x/
[4] https://laratrust.santigarcor.me/docs/5.0/
[5] https://laratrust.santigarcor.me