samedi 4 février 2017

How to loop through collection, separating results by identical column values

I have a table which has columns for "Week" (integer) and "Lesson name" (string). I am returning the collection and passing it to the view, and want to loop through the collection to group the lessons by week. How do I do this? I think I need to use a for each loop but not sure how to write it?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kdiazK
via IFTTT

Aucun commentaire:

Enregistrer un commentaire