diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index f73990a..9c5ea4e 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -67,7 +67,7 @@ class ProductRepository extends WProductRepository $product = $this->find($product); if (count($product->categories)) { - $qb->where('product_categories.category_id', $product->categories->first->id); + $qb->where('product_categories.category_id', $product->categories->first()->id); } return $qb->paginate($limit); @@ -918,4 +918,4 @@ class ProductRepository extends WProductRepository ->get(); } -} \ No newline at end of file +}