How do I get a “select count(*) group by” using laravel eloquent

后端 未结 3 2237
野性不改
野性不改 2021-02-20 01:49

I would like to execute the follow sentence using laravel eloquent

SELECT *, count(*) FROM reserves  group by day

The only solution occurs to m

3条回答
提交回复
热议问题