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:
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-...
Jump to solution
5 Replies
Solution
toeknee
toeknee2mo ago
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-...
toeknee
toeknee2mo ago
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 ...
MelvinNulaBG
MelvinNulaBGOP2mo ago
Hi, @toeknee. Thanks for the answer. Yeah i tried with constructor, but i'am getting this error.
No description
toeknee
toeknee2mo ago
The error explains it 😉 You set it as static but are not calling it statically. remove static from it.
MelvinNulaBG
MelvinNulaBGOP2mo ago
Oh, yeah. Sorry, did not catch that. It worked, thank you so much!

Did you find this page helpful?