Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Access Rules Laravel Package

wnikk/laravel-access-rules

wnikk/laravel-access-rules adds flexible rule-based access control to Laravel. Define permissions for routes, models, and UI elements, then enforce them with middleware, gates, and Blade directives. Lightweight configuration keeps authorization clear and maintainable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Modeling hierarchical policy or rule trees. The package supports rules with parent references — useful when access policies, compliance checks, pricing rules, or workflow gates need to inherit from or nest under others (e.g., org-level → team-level → project-level rules). This maps to "feature: policy inheritance" or "feature: nested rule configuration" roadmap items.
  • Data-integrity decisions for admin surfaces. v3.3.15's self-parenting guard means the package enforces tree validity at write time. This de-risks any roadmap item that lets admins build or reorganize rule hierarchies through a UI (drag-and-drop reordering, "move rule under…" actions) — you can ship those flows without building your own cycle-detection layer.
  • Build-vs-buy for diagnostics and repair tooling. The new acr:doctor command (detecting orphaned rules and looping parent chains) is exactly the kind of ops tooling teams otherwise hand-roll. If your roadmap includes "rule health monitoring," "post-migration integrity checks," or "self-serve repair for misconfigured policies," this package now supplies the core of it — shifting the decision toward buy/adopt rather than build.
  • Release/upgrade scheduling. This is a patch release (3.3.15) adding safeguards and a command — non-breaking by version signal. It can slot into a routine maintenance window; no migration or client-facing changelog required beyond internal ops documentation for the new doctor command.
  • Runbook and on-call decisions. acr:doctor is a natural addition to operational runbooks (scheduled check, pre/post-deploy integrity sweep, alerting hook). PMs can decide to wire it into CI/cron as a cheap safety net rather than standing up bespoke monitoring.

When to Consider This Package

Adopt when:

  • Your domain genuinely has parent-child rule relationships (inherited permissions, scoped policies, nested configuration) and you want a ready-made data model with integrity guarantees.
  • You need operational confidence in that hierarchy — the doctor command gives you a first-class way to detect and surface corruption (orphans, cycles) rather than discovering it through production bugs.
  • You're building admin-editable rule trees and want self-parenting and cycle protection handled at the package layer instead of per-form validation code.
  • You'd otherwise build and maintain hierarchy validation plus repair scripts yourself — the build-vs-buy math favors adopting.

Look elsewhere when:

  • Your rules are flat (no parent/child semantics) — you'd carry hierarchy complexity for no benefit, and a simpler authorization or config package will do.
  • You need fine-grained policy evaluation semantics (expression languages, condition DSLs) that this package doesn't advertise — hierarchy integrity is not the same as policy expressiveness; verify the evaluation engine before committing.
  • The new protections are the only thing you want; if you just need a one-off integrity check for an existing custom table, a small Artisan command in-house may be cheaper than adopting a package.
  • Long-term maintenance risk matters and you can't confirm the package's release cadence or upgrade path beyond patch-level fixes.

How to Pitch It (Stakeholders)

For executives: The package lets us model nested rules and policies (e.g., organization → team → project access) with built-in data-integrity guarantees. This latest patch (v3.3.15) closes a class of silent-corruption bugs — it prevents a rule from being made its own parent and adds a diagnostic command (acr:doctor) that flags broken or looping rule hierarchies. Net effect: fewer production incidents in any admin-editable policy system, and less engineering time spent on custom validation and repair scripts.

For engineering: Non-breaking patch. Two additions worth knowing: (1) self-parent assignment is now rejected at the model/validation layer, so admin UI code no longer needs its own guard; (2) acr:doctor reports rules whose parent record is missing and rules caught in a cyclic parent chain — wire it into a scheduled job or pre-deploy check. No migration or config change indicated. Recommend a routine upgrade and a short runbook entry for the doctor command.

Recommendation: Accept and schedule the upgrade in the next maintenance window; add acr:doctor to the ops runbook and CI integrity check as a low-cost safeguard.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console