Export download logs out with other auth guards and tenants
This route:-
Seems to only apply to the main admin panel. If i try to download an export on a tenant domain I get redirected to admin.
I've tried adding a manual route like this but no luck. Can anyone help??
Solution:Jump to solution
I've found it, need to override the filament.actions middleware, just added this to the app service provider and it all works perfectly now.
```php
Route::middlewareGroup('filament.actions', [
'web',
'auth:admin,organisation,associate',...
3 Replies
Seems to work now by redeclaring the same filament route with the additional auth guards. I think by not specifying the domain it will apply to all.
Edit, this is NOT the solution. whilst it appeared to work - actually it's wrong. Looking at adding some custom middleware to override the filament.actions middleware which specifies web and auth which is the default guard only.
You shouldn’t need to define a specific route for this. As long as your subdomain is setup correctly in both the panel provider and your nginx config I would expect it all to work as expected.
Sorry I don’t have an actual solution for you but my gut says you’re overcomplicating it.
Solution
I've found it, need to override the filament.actions middleware, just added this to the app service provider and it all works perfectly now.