Laravel devs, Collection::groupBy() can do more than group by a column. 👀

Pass it a closure and calculate the group dynamically.

Day, week, month, quarter, or any grouping rule your application needs.

Perfect for turning collections into report-ready data.
image

  • No matching results...
  • Searching...

/ 1000