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

try using groupBy instead of unique

0

astroanu said:

try using groupBy instead of unique

i try that but i need to order:order('age') from the smaller to the bigger and i not get that

0

orderBy('age', 'ASC')

read the docs, everything is there.

0

astroanu said:

orderBy('age', 'ASC')

read the docs, everything is there.

its not work i have 2 user with the same last name but he takes the bigger age and not the small

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Tiktaktok tiktaktok Joined 23 Aug 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.