List or Query
Returns a list of your products.
Examples
Get 20 unarchived products and their prices.
\SureCart\Models\Product::where([
'archived' => false
])->with([
'prices'
])->paginate([
'page' => 1,
'per_page' => 20
]);
Get a list of product based on ids.
\SureCart\Models\Price::where([
'ids' => [
'8ba8d60f-5277-4e6b-807c-dee8166446d5',
'07fd28e0-e735-4acf-86d8-4d7855055e0b'
]
])->paginate();