@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $config = $this->disk->getConfig(); |
47 | 47 | |
48 | - if (key_exists('driver', $config) && $config['driver'] == 's3') { |
|
48 | + if (key_exists('driver', $config) && $config[ 'driver' ] == 's3') { |
|
49 | 49 | $duration = $this->helper->config('temporary_url_duration'); |
50 | 50 | return $this->disk->temporaryUrl($path, now()->addMinutes($duration)); |
51 | 51 | } else { |
@@ -18,9 +18,9 @@ |
||
18 | 18 | $disk = Storage::disk($this->helper->config('disk')); |
19 | 19 | $config = $disk->getConfig(); |
20 | 20 | |
21 | - if (key_exists('driver', $config) && $config['driver'] == 's3') { |
|
21 | + if (key_exists('driver', $config) && $config[ 'driver' ] == 's3') { |
|
22 | 22 | $duration = $this->helper->config('temporary_url_duration'); |
23 | - return response()->streamDownload(function () { |
|
23 | + return response()->streamDownload(function() { |
|
24 | 24 | echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration))); |
25 | 25 | }, $file_name); |
26 | 26 | } else { |