Skip to content

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

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.

    • Overridable. Controllers (forms, sections, fields, entries, fill, assistant) come from config or route options and have hooks.
    • Routes. Route::formBuilder() and Route::formBuilderFill() take guard, prefix, name and middleware.
    • Multi-auth. Authors and submitters are morphs, and authorization uses the route guard's user.
    • Policies. FormPolicy and FormEntryPolicy check seven permissions registered with javaabu/permissions, and can be overridden from config, permissions.policies or Gate::policy().
    • Tests. Guests, missing permissions, viewer and editor-only rights, locked forms, two guards (web and web_admin), and policy and controller overrides.

    Docs: docs/basic-usage/permissions.md

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