chengwl пре 5 дана
родитељ
комит
bfd584bec5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/Longyi/Core/src/Repositories/ProductVariantRepository.php

+ 1 - 1
packages/Longyi/Core/src/Repositories/ProductVariantRepository.php

@@ -30,7 +30,7 @@ class ProductVariantRepository extends Repository
     {
         $query = $this->model
             ->where('product_id', $productId)
-            ->with('values.option')
+            ->with(['values.option','variantImages'])
             ->orderBy('sort_order');
 
         if ($onlyActive) {