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

Filament Subtenant Scope Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v1.1.1

Fixed

  • Tighter spacing between topbar scope dropdowns: each trigger's padding after its chevron and the gap between triggers are trimmed, so a chevron no longer reads as belonging to the next scope.
v1.0.4

Fixed

  • The column shorthand in 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.
  • Topbar scope dropdown is teleported out of overflow clipping (carried over since v1.0.3).
v1.0.2

What's Changed

Security and release-hygiene improvements:

  • CI workflows — run-tests (PHP 8.2–8.4 × Laravel 11–13) and code-style (Pint), with all GitHub Actions pinned to commit SHAs
  • Security policy — added SECURITY.md with private vulnerability reporting instructions
  • Dependabot — weekly updates for Composer and GitHub Actions with a 7-day cooldown
  • Leaner dist archives — .gitattributes export-ignore rules keep tests, CI config, and build tooling out of Composer installs

Full Changelog: https://github.com/leek/filament-subtenant-scope/compare/v1.0.1...v1.0.2

v1.0.1

Docs / metadata only — no code or behavior changes.

  • Add a More Filament plugins by Leek section to the README cross-linking the premium plugins (UI Plus, Workflow Engine, Decision Tables) and the free/open-source siblings.
  • Add relevant composer.json suggest entries pointing at companion plugins (sorted alphabetically).
v1.0.0

Initial release.

Second-level tenancy scope for Filament panels. Adds a topnav dropdown that scopes Eloquent queries globally — service area, region, location, branch, department.

Features

  • Topnav dropdown render hook (configurable, default GLOBAL_SEARCH_BEFORE)
  • HasSubtenantScopes trait — opt resources in via FK column or custom join method
  • Panel-aware Eloquent global scope — fires only inside the panel where the plugin is registered
  • Resolution order: URL param → session → user-level persistence (optional)
  • Bookmarkable scoped URLs via ?scope_<key>=<id>
  • Single-option / multi-option / no-options rendering modes
  • Light + dark mode

Requirements

  • PHP 8.2+
  • Filament v4.x or v5.x
  • Livewire v3 or v4

Install

composer require leek/filament-subtenant-scope

See README for panel theme [@source](https://github.com/source) directive and full usage.

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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings