Lazy Collections & PHP Generator
Let's take the covers off of Laravel's brand new feature of Lazy Collections and dive deep implementing our very own generators from scratch. Buckle up, it's going to be a mind bending road.
Setting Up A Collection Playground
On this special episode, we are answering your questions regarding the setup that I have been using during the course to play with collection. So here it is, from scratch using a console command.
Getting a JSON string representation of a collection is very simple using the toJson() method. Learn all about it and how to add additional options on this episode.<br />
all() vs. toArray()
Today, we are comparing the difference between the all() method and the toArray() method. These two similar methods have one slight difference in the way they handle child collections. Learn all about it in this lesson.