Skip to content

Commit 378c71d

Browse files
export
1 parent cfb51e9 commit 378c71d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function register(): void
4141
'use_path_style_endpoint' => config('filesystems.disks.s3private.use_path_style_endpoint'),
4242
'visibility' => config('filesystems.disks.s3private.visibility'),
4343
'throw' => config('filesystems.disks.s3private.throw'),
44-
'root' => config('filesystems.disks.s3private.root').'filament-excel/',
44+
'root' => config('filesystems.disks.s3private.root') . 'filament-excel/',
4545
]);
4646
}
4747

routes/web.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,13 @@
8383
Route::post('/{project:slug}/volunteer', 'volunteer')->name('volunteer')->middleware('throttle:register-volunteer');
8484
});
8585

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+
8695
Route::get('/{page:slug}', PageController::class)->name('page');

0 commit comments

Comments
 (0)