select, leftJoin, where, groupBy and having are all methods on an eloquent query builder. You can use them just like you would MyModel::where(...)->get().
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community