directorytree/authorization
Native, easy role & permission management for Laravel. Adds migrations and an Authorizable trait to your User model for role/permission checks, optional custom migrations/models, caching, gate registration, middleware, and testing support.
users.create, reports.export) for features like:
@can('settings.edit') for admin-only settings).users.view to compliance officers).department=finance to access reports").For Executives:
"This package lets us ship role-based access control (RBAC) in weeks, not months*, by leveraging Laravel’s native ecosystem. It’s MIT-licensed, actively maintained (Laravel 9–13 support), and reduces dev time for features like admin dashboards, tenant isolation, or compliance tools. For example, we can restrict the ‘Export Reports’ button to finance_admins with a single line of code (@can('reports.export')), cutting UI dev time by 50%. The cost? Zero—it’s open-source and integrates seamlessly with our existing Laravel stack."*
For Engineers: *"This is a drop-in RBAC solution that:
can(), authorize(), and @can directives.permission:users.create to routes for granular route protection.PermissionRegistrar for test setup.
Use case: If we’re building a SaaS with 10+ user roles (e.g., subscriber, editor, admin), this cuts permission logic from 200+ lines of custom code to 20 lines. It’s also future-proof—supports Laravel 13 and back to v9."*How can I help you explore Laravel packages today?