efficiently/authority-controller
AuthorityController provides a Laravel controller trait for role- and ability-based authorization. It offers convenient methods to authorize actions, check permissions, and enforce access rules in controllers, integrating with the Authority package for centralized user authorization.
Authority trait for User, middleware, Blade directives, and the ability to attach roles to arbitrary model instances (not just global user roles). That last capability is the interesting one — it's what lets you make product calls like "per-project roles," "per-document sharing," or "per-tenant admin" without designing an ACL schema from scratch.Consider it when:
Look elsewhere when:
spatie/laravel-permission or bouncer are the actively maintained choices.At 154 stars and no activity beyond Laravel 5.3, treat this as frozen code, not a supported product.
For executives: This is a small, free, MIT-licensed library that would let us ship role-based access control quickly — but only if we're on an old version of our framework. Its real message is diagnostic: it tells us which parts of our stack are behind. I would not fund adoption as a strategic choice. I would fund it only as a time-boxed unblocker with a written exit plan, or skip it entirely and use the framework's built-in authorization.
For engineering: The pattern is sound and cheap to replicate — users have roles, roles have permissions, and roles can be scoped to individual records. The library itself is end-of-life. Recommend either (a) a short internal spike to lift the schema and trait approach into our own codebase, or (b) native Gates/Policies plus a maintained package if we need stored roles. Either way, we avoid taking a dependency we can't get fixes for.
Bottom line: Low cost, low lock-in, no support. Use it as a design reference; adopt it only behind a documented migration plan.
How can I help you explore Laravel packages today?