Trying to create a GROUP BY with eloquent

后端 未结 0 1647
[愿得一人]
[愿得一人] 2021-01-13 22:35
$collections = Collection::selectRaw("DATE(created_at) as collection_date, sum(gross_amount) as amount")
    ->groupBy(\'collection_date\')
    ->pag         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题