We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488c599 commit 06efd05Copy full SHA for 06efd05
src/Controllers/DownloadController.php
@@ -20,11 +20,9 @@ public function getDownload()
20
21
if (key_exists('driver', $config) && $config['driver'] == 's3') {
22
$duration = $this->helper->config('temporary_url_duration');
23
- return response()->streamDownload(
24
- function () {
+ return response()->streamDownload(function () {
25
echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration)));
26
- }, $file_name
27
- );
+ }, $file_name);
28
} else {
29
return response()->download($file->path('absolute'));
30
}
0 commit comments