I am trying to range users, based on how many rows there are in the DB with ther id.
My dataset look like this (simplified):
A .... John
A .... John
B .... Mike
A .... John
B .... Mike
C .... Denis
I want first three unique names, ordered by how many times a value on the left appears.
Can I do that with Laravel's eloquent ORM?
A result would then be:
John
Mike
Denis
Thanks