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.
User model, including HasPermissions where direct permissions are needed.admin role with a stable ability such as posts.publish, assign the role to a user, and check access with Laravel’s authorization flow ($user->can('posts.publish'), middleware, or Blade @can).HasPermissions and ensures conditions are checked once per authorization check. There are no documented breaking changes, but re-run role/permission tests after upgrading.posts.view, posts.edit, and posts.publish. Seed roles and permissions in dedicated seeders so environments and tests stay consistent.composer update, then the package migrations if any are published, and the full authorization test suite. Clear any package permission cache during deployment and in test setup if caching is enabled.HasPermissions. Re-test any role that grants permissions by string rather than by permission model/ID.Gate::before, test that it does not accidentally bypass package conditions or policy checks.How can I help you explore Laravel packages today?