Skip to content

Overridable controllers, policies and default permissions (RBAC, multi-auth) #9

Closed

Description

@n4ff4h
  • Controllers overridable from config or the container
  • Routes registered by a macro so apps choose prefix, middleware and guard
  • Nothing assumes the web guard or App\Models\User
  • A Policy and default permissions registered through javaabu/permissions' registration API
  • Policies overridable from config or Gate::policy()
  • Feature tests for authorization and for two guards

Activity

  1. added
    next-genNext-gen Javaabu packages
    featurePackage feature from the spec
    on Nov 4, 2026
  2. n4ff4h commented on Nov 5, 2026

    @n4ff4h
    CollaboratorAuthor

    Done: Route::widgets([guard, prefix, name, middleware, controller]), a controller overridable from widgets.controllers.widgets with saved()/deleted() hooks, and WidgetPolicy for WidgetLocation and the model, registered with Permissions::policy() and overridable. Permissions are view_widgets, edit_widgets and per-location ones. Feature tests cover two guards (web → User, web_admin → Admin) and the overrides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurePackage feature from the specnext-genNext-gen Javaabu packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions