© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
neverything

Is there a way to get the current tenant in isTenantSubscriptionRequired()?

For a Resource in the Panel, I need to get the current tenant and when implementing
isTenantSubscriptionRequired(Panel $panel)
isTenantSubscriptionRequired(Panel $panel)
using
Filament::getTenant()
Filament::getTenant()
returns null. Is there a way to get the current tenant from the
$panel
$panel
passed to the method in the Resource?
Solution
Thanks to the Filament team helping me on twitter, I was able to implement a much nicer solution. Here is how: https://silvanhagen.com/writing/free-users-filament-laravel-spark/
Silvan Hagen
Handle free users with Filament and Laravel Spark
How to handle free users in a multi-tenant Filament app using Laravel Spark and a custom Middleware.
Handle free users with Filament and Laravel Spark
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Is there a way to disable the tenant registration?
FilamentFFilament / ❓┊help
2y ago
Is there a way to conditionally hide the Tenant Registration Link in the Tenant Menu?
FilamentFFilament / ❓┊help
3y ago
How to get current tenant in FilamentServiceProvider?
FilamentFFilament / ❓┊help
12mo ago
Is there a way to get current step number in Form Wizard?
FilamentFFilament / ❓┊help
13mo ago