Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(collectBy): support dot-notation #247

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

innocenzi
Copy link
Contributor

This pull request adds dot-notation support to collectBy. This is a pattern I use almost every day when working with data and third-party services.

$collection->collectBy('aircraft.aoc') // Collection

This is not a breaking change, as paths containing a dot will behave as before.

@freekmurze freekmurze merged commit 448d0a9 into spatie:main Oct 17, 2023
2 checks passed
@freekmurze
Copy link
Member

Thanks!

@innocenzi innocenzi deleted the feat/collect-by-dot-notation branch October 17, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants