iracode-com/filament-organizational-shield
Filament Organizational Shield brings hierarchical, organization-based access control to Filament panels, letting you scope resources, queries, and actions to a user's department or branch so admins only see and manage records within their own part of the company tree.
Architecture fit
Integration feasibility
Technical risk
->tenant() panel configuration.Key questions to answer before committing
composer.json constraints and commit activity, not the README.modifyQueryUsing) or only at the resource/UI layer? Only the former is defensible.Stack fit
composer.lock first. If you're on a Filament major released after Aug 2024, assume incompatibility until proven otherwise and treat "port it ourselves" as the baseline plan.Migration path
UserResource — it's the resource with the known stub history and the highest credential-handling risk.Compatibility
spatie/laravel-permission roles, existing global scopes, and any current where('organization_id', ...) conventions. Two competing scoping mechanisms is a worse outcome than either alone.config, route, view) after every config or stub change during evaluation — stale compiled Filament views will make you draw the wrong conclusion about whether a change landed.Sequencing
Maintenance
Support
Scaling
WHERE organization_id IN (...) predicates. Insist on indexes on every org/department/team foreign key on scoped tables.Failure modes to monitor
Ramp-up
How can I help you explore Laravel packages today?