gghughunishvili/entrust
Entrust is a Laravel package for flexible role-based access control. Assign roles and permissions to users, protect routes with middleware, and manage authorization through a simple API and Blade helpers.
Entrust is a flexible role-based access control (RBAC) package for Laravel. It lets you assign roles to users and attach permissions to those roles, giving you a clean, database-driven way to manage authorization across your application.
Roles and permissions are stored via migrations and managed through simple model relationships, so you can grant, revoke, and check access with expressive methods like $user->attachRole() and $user->can(). Built-in middleware and Blade directives make it easy to protect routes and conditionally render UI.
EntrustRole, EntrustPermission, and EntrustAbility middleware@role, @permission) for conditional viewsHasRole traitHow can I help you explore Laravel packages today?