Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the inverse to the
dot
array helper by expanding array keys with "dot" notation into multi-dimensional arrays.Besides adding the inverse functionality, there are times when certain functions/methods in your code may not allow multi-dimensional arrays and you need a way to pass flattened "dot" notated arrays to them (or maybe you find the syntax easier to write). For example, if you were to add a message with something like:
You could store those messages correctly, and after retrieving them, simply
undot
the messages to get a proper array:This does not break existing functionality since it's a new helper and tests have been provided.
This is my first pull request ever to a project that isn't work related, so hopefully I did this right (even watched Jeffrey Way's video on Laracasts). I think I spent more time writing the method's description than anything else 馃槵