leek

Second-level tenancy scope (service area, region, location) for Filament panels — topnav dropdown that scopes Eloquent queries globally.

18
2
100% credibility
Found May 07, 2026 at 18 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
PHP
AI Summary

Filament plugin adding a topnav dropdown for subtenant scoping that automatically filters all panel queries, widgets, badges, and searches to a selected subgroup like a service area or region.

How It Works

1
🔍 Discover sub-filters

While managing a multi-company dashboard, you learn about a simple way to add dropdown filters for subgroups like branches or service areas.

2
📦 Add the feature

Follow the quick setup guide to bring this filtering tool into your dashboard.

3
⚙️ Define your groups

Describe your filter options, such as service areas or regions, and link them to your data.

4
📋 Pick dashboard pages

Choose which sections like lists or reports should automatically use the selected filter.

5
Spot the new dropdown

Open your dashboard and see the handy dropdown appear in the top menu next to search.

6
🖱️ Select a group

Click the dropdown, pick a branch, and watch all views, counts, and searches narrow to just that group instantly.

7
🔗 Share focused links

Bookmark or send the page URL - it keeps the filter active for others too.

Seamless filtering

Your team effortlessly switches contexts, always viewing the most relevant business data without extra clicks.

Sign up to see the full architecture

6 more

Sign Up Free

Star Growth

See how this repo grew from 18 to 18 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is filament-subtenant-scope?

This PHP package brings second-level subtenant scopes—like service area, region, or location—to Filament panels via a topnav dropdown. It globally scopes Eloquent queries across resources, widgets, navigation badges, and global search, solving the pain of manual filtering in multi-tenant apps with nested hierarchies. Drop it in, define scopes, add a trait to resources, and every query auto-filters without per-model boilerplate.

Why is it gaining traction?

It persists selections across navigation, logouts, and shares via URL params like `?scope_region=123`, while smartly rendering static labels for single options or full dropdowns for multiples. Multiple scopes stack independently, with custom join logic or user-persistent storage via JSON settings. Devs dig the zero-touch global application—no more repeating where clauses everywhere.

Who should use this?

Filament admins building SaaS panels for companies with subtenants like regions, service areas, or locations, needing quick dropdown filters on all queries. Laravel teams using Livewire v3+ who want bookmarkable, shareable scoped views in relation managers or dashboards. Backend devs avoiding query duplication in multi-tenant CRUD apps.

Verdict

Solid for Filament v4/5 with PHP 8.2+, backed by tests and clear docs, but 18 stars and 1.0% credibility signal early maturity—prototype it first. Grab via Composer if subtenant scopes fit; otherwise, stick to custom traits.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.