My Blog Posts

Laravel 6.5 Released

Laravel 6.5 Released


First, LazyCollection::remember()remembering numbered values and will not withdraw them from the source when renumbered a new Method. 

From the pick request an example :

$users = User::cursor()-remember();

No query has been executed yet.

$users-all();

All values have been pulled from the DB.

$users-all();

We didn't hit the DB again. We got the users from 'remember's cache.
An example of PR's tests:
$source = [1, 2, 3, 4];

$collection = LazyCollection::make(function () use (&$source) {
    yield from $source;
})->remember();

$this->assertSame([1, 2, 3, 4], $collection->all());

$source = [];

$this->assertSame([1, 2, 3, 4], $collection->all());
Then, two new Str added method: afterLast() And beforeLast():
$type = 'App\Notifications\Tasks\TaskUpdated';
Str::afterLast($type, '\\'); // TaskUpdated

$filename = 'photo.2019.11.04.jpg';
Str::beforeLast($filename, '.'); // photo.2019.11.04
Finally, unless Custom Blade if instructions New added conditionsEg Env, Blade documents a special example allows you to use this syntax in Blade:
@env ('local')
    The application is in the local environment...
@elseenv ('testing')
    The application is in the testing environment...
@else
    The application is not in the local or testing environment...
@endenv


The full list of the new features and updates below and At GitHub 6.4.1 to 6.5.0 you can see the differences between Full version notes for Laravel 6.0 GitHub v6 changelog :


v6.5.0

Added

Updated



Share this article


Comments (0)

Comment