The first stop on our Laravel 6 tour is lazy collections, contributed by Joseph Silber. This is easily one of my favorite additions to Laravel 6. While a traditional
Collection wraps an array, a
LazyCollection leverages generators to significantly reduce memory consumption issues, while still offering the same elegant chaining that you've become accustomed to.
Published on Sep 3rd, 2019.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.