Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Laravel Eloquent group by most recent record

Language: Layout:
absolute service time: 0,34 sec 
edit mode |  history
   ID Customer City Amount
1 3 Cust001 City1 1
2 5 Cust001 City2 3
3 7 Cust001 City3 1
4 11 Cust002 City1 2
5 12 Cust002 City2 1
6 14 Cust002 City3 3
7 15 Cust003 City1 1
8 16 Cust003 City2 3
9 17 Cust003 City3 2