Replies: 1 comment 2 replies
-
Could you rather use the code from Collection? This already has a group by. Otherwise you'd have redundant code. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, beautiful community!
I've been using this small helper for years and I thought it's elegant (and resembles magic) enough to be considered to become part of core Laravel:
test, with more examples:
Did it click in your brain? Do you like it?
I find the pattern satisfyingly self-explanatory, intuitive and it creates predictable results.
Do you think it worth doing a PR?
Beta Was this translation helpful? Give feedback.
All reactions