Level 102
Something like
StockIn::selectRaw('product_id,date(created_at) as Dates')
->groupBy('product_id')
->groupBy('Dates')
->get();
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
DB::Select('SELECT product_id,date(created_at) as Dates from stock_ins group by product_id,Dates;')
Something like
StockIn::selectRaw('product_id,date(created_at) as Dates')
->groupBy('product_id')
->groupBy('Dates')
->get();
Please or to participate in this conversation.