Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function getDownload() |
||
10 | { |
||
11 | $file = $this->lfm->setName(request('file')); |
||
12 | |||
13 | if (!Storage::disk($this->helper->config('disk'))->exists($file->path('storage'))) { |
||
14 | abort(404); |
||
15 | } |
||
16 | |||
17 | return Storage::disk($this->helper->config('disk'))->download($file->path('storage')); |
||
18 | } |
||
20 |