My Blog Posts

Laravel 6.8.0 Released

Laravel 6.8.0 Released


ArrayAccess in Responses

Taylor Otwell Applied ArrayAccess On JsonResponse and TestResponse classes. If you want to import JSON data in a test or jsonresponse instance, it is appropriate to have directory access. Taylor said it was a good addition to in pick request summarized how useful it can be (# 30817) 

Here's a short sample from PR:

In a test...

Route::get('/', function () {
  return ['servers' => ['foo', 'bar']];
});

$response = $this->get('/');

Before
$this->assertCount(2, $response->original['servers']);

After
$this->assertCount(2, $response.'servers']);

Packages Can Use Custom Markdown Mail Themes

Packages can now use custom markdown mail themes. Now, you can use a package as follows:

mailcoach::mails.layout.mailcoach

AssertViewHas ()

TestResponse::assertViewHas() has support for array controls:

$this-Get('/page')
    ->assertViewHas('page', [
        'component' => 'PageComponent',
        'url' => '/page',
        'version' => null,
        'props' => [
            'user_name' => 'John Doe'
        ]
    ]);
The full list of the new features and updates below and At GitHub 6.7.0 to 6.8.0 Between you can see the differences . Full version notes for Laravel 6.0 GitHub v6 changelog :

v6.8.0

Added

  • Packages allowed to use custom tagging mail themes ( # 30814 , 2206d52 )
  • Added support for arrays TestResponse::assertViewHas()# 30837 )
  • Added Model::setRawAttribute()# 30853 )
  • Resource--force Option Added make:controller# 30856 )
  • Applied ArrayAccess JsonResponseAnd TestResponse# 30817 )
  • Resource--seed Option Added make::model# 30828 , 2cd9417 )

Fixed

  • Fixed creating two indexes instead of one when using one change()# 30843 )
  • Mailable3c8ccc2 ) block duplicate attachments in
  • ServiceProvider for PHP 7.4 in Lumen# 30819 )
  • Fixed model validation that is not meaningful in database validation rules ( # 30840 )

Updated




Share this article


Comments (0)

Comment