fix pictures

This commit is contained in:
2026-06-29 19:58:06 +03:30
parent 8fc71a1281
commit c177bdbb22
6 changed files with 72 additions and 31 deletions
@@ -78,7 +78,7 @@ class ProductController extends SuperController
]);
if ($product->relationLoaded('file') && $product->file) {
$product->file->setAttribute('full_src', $product->file->src);
$product->file->setAttribute('full_src', File::publicUrl($product->file->getAttributes()['src'] ?? null));
}
if ($representativeId !== null && (int) $product->id === $representativeId) {