JG
JG
FFilament
Created by JG on 7/22/2024 in #❓┊help
Filament::getTenant() is null on AJAX calls
fixed it by adding IdentifyTenant::class, SyncSpatiePermissionsWithFilament::class, to the end of the ->middleware() method of the panel
6 replies
FFilament
Created by JG on 7/22/2024 in #❓┊help
Filament::getTenant() is null on AJAX calls
For web request routes it does this so it makes sure the tenant is set before: public function getTenantMiddleware(): array { return [ IdentifyTenant::class, ...$this->tenantMiddleware, ]; }
6 replies
FFilament
Created by JG on 7/22/2024 in #❓┊help
Filament::getTenant() is null on AJAX calls
I can tell that it has something to do with the order in which the middlewares are executed. Looks like IdentifyTenant is executed after other tenant middlewares and this is why it fails.
6 replies