mercredi 27 janvier 2016

Laravel Eloquent display group data

How do I group and display same column values if I have this kind of table results in my database using Laravel Eloquent.

ID | ITEM | QTY
1  | 123  | 5
2  | 123  | 6
3  | 456  | 2
4  | 678  | 8

and the results will be :

ID | ITEM | QTY 
1  | 123  |  5
   | 123  |  6
2  | 456  |  2
3  | 678  |  8    


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire