Laravel 6.5 out

First of all, LazyCollection::remember()remembering numbered values and will not pull them from the source when renumbered a new method. 

From the pull 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. Method added: 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 special Blade if instructions for new conditions addedfor example Env, Blade documents a special The example allows you to use this syntax in Blade:
@env('local') // The application is in the local environment...@elseenv// The application is in the testing environment...@else // The application is not in the local or testing environment...@endenv

The full list of new features and updates below and the full On GitHub 6.4.1 vs. 6.5.0 you can see the differences between Full release notes for Laravel 6.0 on GitHub v6 is available on the changelog :





KARABAY A, 2020 . Laravel 6.5,

(Accessed November 06, 2019).

  Share this post

Comments (0)


Sign up for the email newsletter to be the first to know about my blog posts