You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Overridable controllers, policies and default permissions (RBAC, multi-auth) #11
Done on next-gen (c50699a). The docs are docs/basic-usage/managing-roles.md and docs/advanced-usage/overriding-controllers-and-views.md.
Route::roles([guard, prefix, name, middleware, controller]) stores the guard in the route action (permissions_guard) and defaults the middleware to auth:{guard}.
RolesController answers JSON for API requests and renders Blade or Inertia pages by config('permissions.views'). It can be overridden from config, the route option or the container.
RolePolicy and the view_roles/edit_roles/delete_roles permissions are registered through the package's own API; turn them off with register_defaults.
The tests cover authorization for every action, and two guards.
The real Blade and React pages are tracked in #10; the controller tests use fixture views.
Activity
Add overridable role controllers, routes and API
Document v3 for people and agents; add the Boost guideline and skill
n4ff4h commentedon Nov 4, 2026
Done on
next-gen(c50699a). The docs aredocs/basic-usage/managing-roles.mdanddocs/advanced-usage/overriding-controllers-and-views.md.Route::roles([guard, prefix, name, middleware, controller])stores the guard in the route action (permissions_guard) and defaults the middleware toauth:{guard}.RolesControlleranswers JSON for API requests and renders Blade or Inertia pages byconfig('permissions.views'). It can be overridden from config, the route option or the container.RolePolicyand theview_roles/edit_roles/delete_rolespermissions are registered through the package's own API; turn them off withregister_defaults.The real Blade and React pages are tracked in #10; the controller tests use fixture views.