Hello How To Apply This Query In Laravel i need select all products price_before and price_after not = 0
i tested this
-------------------
$products = Product::where([
['price_before', '!=', 0],
['price_after', '!=', 0]
])->get();
return ProductResource::collection($products);
and also this
$products = Product::where('price_before','!=',0)
->where('price_after','!=',0)
->get();
return ProductResource::collection($products);
But Both doesn't work if one of them = 0 price_before =0 or price_after = 0 Product not show in the query any help