diff --git a/routes/web.php b/routes/web.php index 7b46ce1..4a30d36 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,10 +1,17 @@ path($path); + return response() - ->download(Storage::disk('filament-excel')->path($path), substr($path, 37)) + ->download($path, $filename) ->deleteFileAfterSend(); }) + ->middleware(['web', 'signed']) ->where('path', '.*') ->name('filament-excel-download');