I have a collection of some Eloquent model items from my database which are grouped by an attribute using groupBy()
, I need to sort that collection by another attribute of the first item of each group but preserve the initial structure. How can I achieve this, if possible at all?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire