leek/filament-subtenant-scope
Adds second-level tenancy to Filament panels: a topnav dropdown scopes every Eloquent query—resources, widgets, badges, and global search—to a sub-tenant like a service area, region, or branch. One trait plus a scopes array, no per-resource code needed.
HasSubtenantScopes now qualifies the column with the model's table. An unqualified where <column> was rejected as ambiguous once a scoped query joined another table with the same foreign key.Security and release-hygiene improvements:
run-tests (PHP 8.2–8.4 × Laravel 11–13) and code-style (Pint), with all GitHub Actions pinned to commit SHAsSECURITY.md with private vulnerability reporting instructions.gitattributes export-ignore rules keep tests, CI config, and build tooling out of Composer installsFull Changelog: https://github.com/leek/filament-subtenant-scope/compare/v1.0.1...v1.0.2
Docs / metadata only — no code or behavior changes.
composer.json suggest entries pointing at companion plugins (sorted alphabetically).Initial release.
Second-level tenancy scope for Filament panels. Adds a topnav dropdown that scopes Eloquent queries globally — service area, region, location, branch, department.
GLOBAL_SEARCH_BEFORE)HasSubtenantScopes trait — opt resources in via FK column or custom join method?scope_<key>=<id>composer require leek/filament-subtenant-scope
See README for panel theme [@source](https://github.com/source) directive and full usage.
How can I help you explore Laravel packages today?