Skip to content

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

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. Controllers from config('post-types.controllers') or the macros' controllers/controller, with saved()/deleted() hooks. Macros take guard, prefix, name, middleware, only/except. Authors are a morph; tests use two guards (web → User, web_admin → Admin). Permissions per post type and taxonomy through Permissions::register() (also for post types registered later); PostPolicy and TermPolicy overridable from config, config('permissions.policies') or Gate::policy().

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