dlnsk/h-rbac
Hierarchical role-based access control for Laravel. Define roles and permissions, assign roles to users, and inherit permissions through role hierarchies. Includes middleware, Blade directives, caching, and a simple API for checking access throughout your application.
For executives: Authorization is becoming a product capability, not just an engineering detail. Hierarchical RBAC lets us ship enterprise-friendly features—delegated admin, team/workspace roles, plan-based entitlements—faster and with less custom code. This package is MIT-licensed, Laravel-native, and low-lock-in, so it can accelerate a pilot without a large vendor commitment. The trade-off is community size: with ~37 stars, it is a niche dependency. Recommendation: pilot it for the next feature that genuinely needs role inheritance, keep it behind an internal authorization interface, and avoid making it a platform-wide bet until proven.
For engineering: It extends native Laravel gates/policies rather than replacing them, so the team keeps familiar patterns and testability. Hierarchical roles and callbacks cover contextual rules without scattering permission checks across controllers. Risks are dependency maturity and long-term maintenance. Mitigate by pinning versions, adding contract tests around our authorization boundary, wrapping the package behind an internal service/interface, and treating fork-or-replace as a viable fallback. This is a good fit for a bounded pilot, not an uncritical default.
How can I help you explore Laravel packages today?