Download exported files with custom middlware

Hello. I just try to use the exporter on an application having specific authentification mecanism. I'm not authenticated when I download the exported CSV because I have wrong middlwares here :
Route::get('/filament/exports/{export}/download', DownloadExport::class)
->name('filament.exports.download')
->middleware(['web', 'auth']);

Route::get('/filament/imports/{import}/failed-rows/download', DownloadImportFailureCsv::class)
->name('filament.imports.failed-rows.download')
->middleware(['web', 'auth']);
Route::get('/filament/exports/{export}/download', DownloadExport::class)
->name('filament.exports.download')
->middleware(['web', 'auth']);

Route::get('/filament/imports/{import}/failed-rows/download', DownloadImportFailureCsv::class)
->name('filament.imports.failed-rows.download')
->middleware(['web', 'auth']);
Would it be possible to use another middleware than web and auth?
1 Reply
electronick86
electronick86OP10mo ago
any idea?
Want results from more Discord servers?
Add your server