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 sh
Eloquent uses the query builder internally, so you can do:
$users = User::orderBy('name', 'desc') ->groupBy('count') ->having('count', '>', 100) ->get();