Hi Janko,
$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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community