Importer Multi-Tenancy
Hi, everybody!
I just have a simple question for the Prebuilt Import Action.
How do i access the tenant, in the importer. I tied with boot method, tried with filament()->getTenant() in the resolveRecord(), but it did't work.
Thanks in advance!
Solution:Jump to solution
GitHub
Make import action tenant aware · filamentphp filament · Discussi...
Hi, I have a multi-tenancy setup and I'm trying to access Filament::getTenant() inside an importer class. The method returns null. Upon further investigation, the route filament.imports.failed-...
5 Replies
Solution
Chuck it in the importer contructor
https://github.com/filamentphp/filament/discussions/11224
GitHub
Make import action tenant aware · filamentphp filament · Discussi...
Hi, I have a multi-tenancy setup and I'm trying to access Filament::getTenant() inside an importer class. The method returns null. Upon further investigation, the route filament.imports.failed-...
Other examples here too
https://github.com/filamentphp/filament/discussions/9982
GitHub
ImportAction in combination with multi tenancy · filamentphp filam...
Today I've upgraded my side project to Filament V3.1 to toy around with the new ImportAction. The application uses the build in multi tenacy (tenant model named Organization) and a custom auth ...
Hi, @toeknee. Thanks for the answer. Yeah i tried with constructor, but i'am getting this error.

The error explains it 😉 You set it as static but are not calling it statically.
remove static from it.
Oh, yeah. Sorry, did not catch that. It worked, thank you so much!