@@ -25,10 +25,11 @@ |
||
25 | 25 | */ |
26 | 26 | public function show($device_id) |
27 | 27 | { |
28 | - if (Storage::disk('private')->exists('deviceimage/'.$device_id)) |
|
29 | - $image = Image::make(Storage::disk('private')->get('deviceimage/'.$device_id)); |
|
30 | - else |
|
31 | - $image = Image::make('img/video_not_found.jpg'); |
|
28 | + if (Storage::disk('private')->exists('deviceimage/'.$device_id)) { |
|
29 | + $image = Image::make(Storage::disk('private')->get('deviceimage/'.$device_id)); |
|
30 | + } else { |
|
31 | + $image = Image::make('img/video_not_found.jpg'); |
|
32 | + } |
|
32 | 33 | |
33 | 34 | return $image->response(); |
34 | 35 | } |