master
Rustem 2025-06-12 20:44:34 +05:00
parent 8736f248dc
commit 6c5b7f56df
1 changed files with 3 additions and 1 deletions

View File

@ -323,8 +323,10 @@ class MobileApiController extends Controller
$colorPath = $path;
if ($carsOfColor->first()->photo_id) {
dd($carsOfColor);
$photo = UniModel::model('core_files')->find($carsOfColor->first()->photo_id);
if (is_null($photo)) {
dd($carsOfColor);
}
$colorPath = url('api/files/file/' . ltrim($photo->path, '/'));
}