lasf fixes
This commit is contained in:
parent
7b328f89aa
commit
46cc80353f
|
|
@ -34,7 +34,7 @@ class Products extends ProductController
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
return ProductResource::collection($this->productRepository->getAll(request()->input('category_id')));
|
||||
return ProductResource::collection($this->productRepository->getAll(request()->input('category')));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -173,11 +173,11 @@ class Products extends ProductController
|
|||
}
|
||||
|
||||
public function discountedProducts(){
|
||||
return ProductResource::collection($this->productRepository->getDiscountedProducts(request()->input('category_id')));
|
||||
return ProductResource::collection($this->productRepository->getDiscountedProducts(request()->input('category')));
|
||||
}
|
||||
|
||||
public function popularProducts(){
|
||||
return ProductResource::collection($this->productRepository->getPopularProducts(request()->input('category_id')));
|
||||
return ProductResource::collection($this->productRepository->getPopularProducts(request()->input('category')));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue