Level 13
try this
$from = date('2019-12-05');
$to = date('2019-10-01');
$bestseller = Bestseller::whereBetween('bestseller', [$from, $to])->get();
`` Hello I have folowing tables in my ecommerce application:
products id name
orders id userid total created_date
order_items id orderid productid quantity
how can I query database to get best seller products which have been ordered within specific date range like 2019-10-1 to 2019-12-5? ``
Please or to participate in this conversation.