master
Rustem 2025-06-12 20:43:20 +05:00
parent 430e910afb
commit 8736f248dc
1 changed files with 1 additions and 1 deletions

View File

@ -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, '/'));
}