@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use Intervention\Image\Facades\Image as Image; |
| 7 | 6 | |
| 8 | 7 | class ImageController extends Controller |
@@ -28,9 +28,9 @@ |
||
| 28 | 28 | $storagePath = storage_path('app/images/devices/'); |
| 29 | 29 | $imagePath = glob($storagePath . $device_id . "*" . ".jpg"); |
| 30 | 30 | |
| 31 | - if (!empty($imagePath)) |
|
| 32 | - $image = Image::make($imagePath[0]); |
|
| 33 | - else |
|
| 31 | + if (!empty($imagePath)) { |
|
| 32 | + $image = Image::make($imagePath[0]); |
|
| 33 | + } else |
|
| 34 | 34 | { |
| 35 | 35 | $imagePath = public_path() . '/img/video_not_found.jpg'; |
| 36 | 36 | $image = Image::make($imagePath); |