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

Add dump method to Collection class #19755

Merged
merged 3 commits into from
Jun 25, 2017
Merged

Add dump method to Collection class #19755

merged 3 commits into from
Jun 25, 2017

Conversation

freekmurze
Copy link
Contributor

@freekmurze freekmurze commented Jun 25, 2017

This PR adds a dump method to Illuminate\Support\Collection so you can easily debug multiple spots in a collection chain.

The function accepts and dumps a variable number of arguments. This can be used to add labels in the output when dumping at multiple spots in a collection chain. Example of that behaviour can be found here: https://murze.be/2016/08/debugging-collection-chains/

@freekmurze freekmurze closed this Jun 25, 2017
@freekmurze freekmurze reopened this Jun 25, 2017
@freekmurze freekmurze changed the title Add dump method Add dump method to Collection class Jun 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants