Export download logs out with other auth guards and tenants

This route:-
filament/exports/{export}/download


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??

Route::domain('{tenant}.'.config('app.enduser_domain'))->group(function() {
    Route::get('filament/exports/{export}/download', DownloadExport::class)->name('download.export');
});
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.
        Route::middlewareGroup('filament.actions', [
            'web',
             'auth:admin,organisation,associate',
        ]);
Was this page helpful?