diff --git a/app/Http/Controllers/MobileApiController.php b/app/Http/Controllers/MobileApiController.php index 4b6a4be..fe6d01a 100644 --- a/app/Http/Controllers/MobileApiController.php +++ b/app/Http/Controllers/MobileApiController.php @@ -321,9 +321,9 @@ class MobileApiController extends Controller foreach ($carsByColor as $carColor => $carsOfColor) { $carColor = UniModel::model('pipi_auto_colors')->find($carColor); - dd($carsOfColor); $colorPath = $path; if ($carsOfColor->first()->photo_id) { + dd($carsOfColor); $photo = UniModel::model('core_files')->find($carsOfColor->first()->photo_id); $colorPath = url('api/files/file/' . ltrim($photo->path, '/')); }