Collections have always been one of my favorite features of Laravel. We most commonly use collections with our Eloquent models, but many large datasets that Laravel works with support collection dumping.
Sidenote: if you want to use these collection methods with flash messages, or in general want a better way to work with flash messaging, check out the package I wrote called “LaraFlash” which makes it easier to submit flash messages and also easier to work with multiple flash messages, because they are handled like collection objects.
LaraFlash on Github: [ Ссылка ]
For all of the available commands that collections support, see the list here:
[ Ссылка ]
Now we can better debug these with two new commands, dump() and dd().
These work just like any other method, so they are easy to use and can help with debugging long collection chains.
==== MORE FROM THIS SERIES . ====
Full Playlist for the “Laravel 5.5 New Features“ Series:
[ Ссылка ]_
==== FOLLOW ME ====
Subscribe for New Releases!
Subscribe to DevMarketer Insider
[Email Newsletter]
[ Ссылка ]
Twitter - [ Ссылка ]
(ask me questions!)
==== QUESTIONS? ====
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Email me hello@jacurtis.com
Thanks for all your support!
Ещё видео!