I would like to execute the follow sentence using laravel eloquent
SELECT *, count(*) FROM reserves group by day
The only solution occurs to m
You could use this:
$reserves = DB::table('reserves')->selectRaw('*, count(*)')->groupBy('day');