diff --git a/app/Models/Product/ProductList.php b/app/Models/Product/ProductList.php index dc5f0c6..b65bd39 100644 --- a/app/Models/Product/ProductList.php +++ b/app/Models/Product/ProductList.php @@ -13,7 +13,8 @@ class ProductList extends BaseProduct { $id_image = $this->getCover($this->id); $id_image = $id_image['id_image']; - $img = 'http://' . (new \Link())->getImageLink($this->link_rewrite, $id_image, 'product_carre'); + $img = (new \Link())->getImageLink($this->link_rewrite, $id_image, 'home'); + $img = str_replace($_SERVER['SERVER_NAME'], env('DOMAIN_STATIC'), $img); $product['img'] = $img; return $product;