What problem does it solve?
This Skill simplifies the process of implementing role-based access control (RBAC) in Laravel applications, streamlining the management of roles, permissions, and capabilities.
Core Features & Use Cases
- Role Management: Assign roles to users and define permissions within those roles.
- Permission Management: Grant permissions to roles or directly to users for fine-grained access control.
- Capability Management: Group permissions into capabilities for cleaner authorization logic.
- Multi-Tenancy: Scope roles and permissions to specific tenant contexts like teams or projects.
- Feature Integration: Delegate feature access checks to external packages.
- Code-First Definitions: Define permissions, roles, and capabilities in PHP classes with attributes.
- Use Case: A project manager can use this Skill to define roles for team members, assign permissions, and ensure that only authorized users can access sensitive project data.
Quick Start
Run the 'mandate:sync' command to sync your code-first definitions of roles, permissions, and capabilities with the database.