Hi mitq,
You have two way to do that:
User::groupBy('users.id');
User::distinct();
You can saw usage on this page http://laravel.com/docs/4.2/queries
Cheers,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community