I am trying to understand how the Laravel Eloquent ORM works, and looked at the following MySQL query:
SELECT id, name, date FROM tablename GROUP BY name ORDER BY date
Using GROUP BY always returns the oldest value of name . Is there any way to return the last value?
source share