Weave Code
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 with a top-nav dropdown that scopes all Eloquent queries to a sub-tenant (region, location, department, etc.). Persists via session/URL and auto-filters resources, widgets, badges, and global search.

View on GitHub
Deep Wiki
Context7
v1.0.2

What's Changed

Security and release-hygiene improvements:

  • CI workflowsrun-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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky