I was searching for making a GROUP BY name Eloquent ORM docs but I haven't find anything, neither on google.
GROUP BY name
Does anyone know if it's possible ? or should I use query builder ?
Eloquent uses the query builder internally, so you can do:
$users = User::orderBy('name', 'desc') ->groupBy('count') ->having('count', '>', 100) ->get();
1.4m articles
1.4m replys
5 comments
57.0k users