© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
o2b3k

Accessing the current tenant

The documentation states that anywhere in the application, you can access the tenant model for the current request using Filament::getTenant(). However, when I call the Filament::getTenant() method inside an observer, it returns null. Filament::getTenant() only returns the current tenant within Filament resources. I need access to it inside a model, observer, or event. Is this possible?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Globally Accessing Current Resource
FilamentFFilament / ❓┊help
2y ago
Access the current tenant in the importer resolveRecord() method
FilamentFFilament / ❓┊help
2y ago
How do you get the current tenant id?
FilamentFFilament / ❓┊help
3y ago
Accessing the current model inside custom validation rule
FilamentFFilament / ❓┊help
3y ago