My Blog Posts

Laravel 6.15.1 Released

Laravel 6.15.1 Released


Collection Method

whereNull()And whereNotNull()added the method and gave some examples to draw data:

Already available when building a query
$users = User::whereNotNull('email_verified_at')-get();
// But when you have a collection you have to do the instead:
$users = User::all();
$unverifiedUsers = $users->whereStrict('is_verified_at', null);
$verifiedUsers = $users->where('is_verified_at', '!==', null);

With this PR you can now:

$users = User::all(); $unverifiedUsers = $users->whereNull('is_verified_at');
$verifiedUsers = $users->whereNotNull('is_verified_at');

Prickett MockStreamcontributed to a new class where you can see it being used in the following test example:

MockStream::register($mock);
$stream = fopen('mock://stream', 'r+');
$consoleOutputSections = [];
$mock->shouldReceive('section')
->andReturn(new ConsoleSectionOutput)
$stream,
$consoleOutputSections,
Output::VERBOSITY_NORMAL,
False
new OutputFormatter)
);
// ...
MockStream::restore();

Check out PR #31447 For more details.

Here's the full list of new features and updates on GitHub and the differences görebilirsiniz between 6.15.0 and 6.15.1. You can find all version notes for Laravel 6.0 in the latest v6 change journal:

v6.15.1

Added

  • Added whereNullAnd whereNotNull# 31425 )
  • Added Illuminate\Foundation\Testing\MockStream class ( # 31447 )

Fixed

  • event:listCommand to show unregistered activities ( # 31444 )
  • Corrected postgres for json sequences intertwined with ( #31448 , b3d0da1 )



Share this article


Comments (0)

Comment