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();
2.1m questions
2.1m answers
60 comments
57.0k users