Laravel core team has released version 6.5 of the PHP framework Laravel. This update introduces several new methods for the LazyCollection, the String Helper and the Query Builder.
Laravel 6.5: New method for LazyCollection
The update introduces a new method: When you call remember() method, it should return a new LazyCollection that remembers values that have already been enumerated. These values should therefore not be pulled from the source again.
An example from the Pull Request on GitHub:
To complement the existing Collection class, the LazyCollection class uses PHP generators. This allows to work with large datasets without using too much memory.
Two new string methods for Laravel
The PHP-Framework Laravel brings along a multitude of global "helper" PHP functions. The update provides two new methods for the string helper: afterLast() and beforLast(). To illustrate this, here is an example from the Pull Request:
New methods for the Query Builder
The Query Builder is an interface for creating and executing database queries, has also been updated. The methods existsOR and doesntExistOr have been added. This should make it possible to define a callback if the condition is false.