FilamentF
Filament2y ago
JG

Filament::getTenant() is null on AJAX calls

When things are updated like table poll requests, it uses a middleware I am using to sync the spatie permission team id with the filament team. This works well on page requests but on AJAX requests Filament::getTenant() is null. Any idea how I can fix that?
Solution
fixed it by adding
IdentifyTenant::class,
SyncSpatiePermissionsWithFilament::class,
to the end of the ->middleware() method of the panel
Was this page helpful?