$auctions = Auctions::selectRaw('id,name,max(price) as price') ->where('user_id', $user_id) ->groupBy('auct_id', 'kto') ->get();
$auctions->id and $auctions->name
i am assuming id and name as column
Thanks Chandran Nepolean
Thx, and :) ->groupBy('auct_id', 'kto','id', 'name')
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.