Skip to main content

"Black Friday" Discount! Only until December 1st: 50% off all membership plans!

Read more here

GROUP BY in Laravel Collections

Premium
5 min read
Geovane Kruger avatar

In the first example, on commentary line, have something wrong // Note that the groupBy is AFTER the database query is executed, meaning that it's not a collection method

👀 1
Modestas avatar

Oops, good catch!