The Laravel team announced the immediate availability of Laravel version 6.1.0 with a new Eager method added to Lazy Collections along with the latest updates to Laravel. A Lazy Collection is a new feature added to Laravel 6, which has an Eager method that enumerates all of the lazy collection’s values and constructs a new Lazy Collection instance, which will be backed by an array.
In this step-by-step guide, you will learn about the integration of Eager Lazy Collections into Laravel.
Without Eager() The below mentioned Would Fetch Results Twice
An example illustrates its use:
The Purge() And GetChannels() Methods Were Added
Next, the purge() and getChannels() methods were added to the LogManager class in order to purge resolved log driver/channel. The test in illustrates its use:
A New AssertNoContent() Method Was Added To The TestResponse Class
// Before
// After
A New WithCookies Method Was Added To TestResponse, Making It Easier To Send Cookies In HTTP Tests
// Before
// After
You can see the full list of new features and updates below, and the difference between6.0.4 and 6.1.0 on GitHub. The full release notes for Laravel 6.0 are available in the GitHubv6 changelog
Added Illuminate\Support\LazyCollection::eager() method.
Added purge() and getChannels() methods to Illuminate\Log\LogManager.
Added Illuminate\Foundation\Testing\TestResponse::assertNoContent() method.
Added InteractsWithQueue to SendQueueNotifications.
Added SendQueueNotifications::retryUntil() method.
Added methods for sending cookies with test requests.
Added support of job middleware for queued notifications.
Fixed migration class duplicate check in make: migration command.
Fixed monolog v2 handler preparation.
Fixed return of callback value for DurationLimiter.
Added runtime information output for seeders.
Added strict parameter to Illuminate\Foundation\Testing\TestResponse::assertJsonPath().
Added deletedAtColumn optional parameter to Foundation\Testing\Concerns\InteractsWithDatabase::assertSoftDeleted().
Improved AuthServiceProvider::registerEventRebindHandler() in case if guard is not initialized.
Laravel's Eager Lazy Collection is a powerful tool that allows you to process all data with very little memory. Hence, try to learn the process of integration and start using it for your client's project.
Project Manager at Vasundhara Infotech, a leading software development company. His great planning and execution qualities led to several successful projects.
Sign Up to our newsletter to get latest updates staight in your inbox.
Vasundhara respects your privancy. No Spam!
Sign Up to our newsletter to get latest updates staight in your inbox.
Vasundhara respects your privancy. No Spam!