I would like to execute the follow sentence using laravel eloquent
SELECT *, count(*) FROM reserves group by day
The only solution occurs to m
As you wish to do it with Laravel Eloquent I assume you have a model name Reserve. In this case you can use this
Reserve
$reserve = Reserve::all()->groupBy('day')->count();