File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function register(): void
41
41
'use_path_style_endpoint ' => config ('filesystems.disks.s3private.use_path_style_endpoint ' ),
42
42
'visibility ' => config ('filesystems.disks.s3private.visibility ' ),
43
43
'throw ' => config ('filesystems.disks.s3private.throw ' ),
44
- 'root ' => config ('filesystems.disks.s3private.root ' ). 'filament-excel/ ' ,
44
+ 'root ' => config ('filesystems.disks.s3private.root ' ) . 'filament-excel/ ' ,
45
45
]);
46
46
}
47
47
Original file line number Diff line number Diff line change 83
83
Route::post ('/{project:slug}/volunteer ' , 'volunteer ' )->name ('volunteer ' )->middleware ('throttle:register-volunteer ' );
84
84
});
85
85
86
+ Route::get ('filament-excel/{path} ' , function (string $ path ) {
87
+ return
88
+ response ()
89
+ ->download (Storage::disk ('filament-excel ' )->path ($ path ), substr ($ path , 37 ))
90
+ ->deleteFileAfterSend ();
91
+ })
92
+ ->where ('path ' , '.* ' )
93
+ ->name ('filament-excel-download ' );
94
+
86
95
Route::get ('/{page:slug} ' , PageController::class)->name ('page ' );
You can’t perform that action at this time.
0 commit comments