happenv-com/laravel-access-control
Role-based access control for Laravel. Define roles and permissions, assign them to users, and guard routes, controllers, and Blade views with simple middleware and helper checks. Lightweight, configurable, and easy to drop into existing apps.
HasPermissions roles, conditions evaluated once) is a correctness fix in exactly that layer — worth flagging because incorrect ability strings mean over- or under-permissioning, which surfaces as either a security finding or a support-ticket cluster, not as a bug report.Adopt when:
Look elsewhere when:
To executives: This is a small, low-cost dependency that lets us ship roles and permissions without building and maintaining an authorization layer ourselves. The latest release is a bug-fix patch with no breaking changes and no migration work — it corrects how permission strings resolve and reduces redundant permission checks, which lowers the risk of users seeing or doing things they shouldn't. The trade-off is dependency concentration: it's a small open-source project, so we should treat authorization as a path we own the outcomes for even when we don't own the code, and add our own tests around the permissions that matter commercially.
To engineering: Patch release v3.1.1 — no API changes. Two fixes: ability strings now resolve correctly on roles using the HasPermissions trait, and conditions are evaluated once per check rather than repeatedly. Adopt on a trial basis if we want trait-level RBAC wired into existing models; validate it against our tenancy model and add regression tests for ability-string resolution before it goes near production authorization paths. Evaluate against native Gates/Policies first — if our needs fit there, we don't need a dependency at all.
How can I help you explore Laravel packages today?