Support the ongoing development of Laravel.io →
posted 7 years ago
Last updated 2 years ago.
0

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

Last updated 7 years ago.
0

Thx, and :) ->groupBy('auct_id', 'kto','id', 'name')

0

Sign in to participate in this thread!

Eventy

Your banner here too?

janko8403 janko8403 Joined 2 Nov 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.