Support the ongoing development of Laravel.io →

jaystew

Joined 26 Aug 2014

Statistics

Threads 1
Replies 1
Solutions 0
Articles 0

Looking for Eloquent equivalent to this basic query using "DISTINCT"

SELECT DISTINCT user_id FROM picks WHERE weeknum = 1 I'm having a hard time finding examples using &...

0 Likes
6 Replies
Solved
replied 10 years ago

Looking for Eloquent equivalent to this basic query using "DISTINCT"

Excellent! I do have a Picks model so the first example was what I was looking for.

0 Likes

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.