Laravel 6.8.0 Out

ArrayAccess in responses

Taylor Otwell Applied ArrayAccess on JsonResponse and TestResponse classes. If you want to import JSON data in a test or in the JsonResponse instance, it is appropriate to have array access. Taylor said it was. in pull request summarized how it can be useful (# 30817) 

Here's a brief example 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, a package can use the following example:

mailcoach::mails.layout.mailcoach

AssertViewHas ()

TestResponse::assertViewHas() There is support for array controls:

$this->get' ->assertViewHas' ('page', [ 'component' => 'PageComponent', 'url' => '/page', 'version' => null, 'props' => [ 'user_name' => 'John Doe' ]);
The full list of new features and updates below and the full On GitHub 6.7.0 vs. 6.8.0 Between you can see the differences . Full release notes for Laravel 6.0 on GitHub v6 is available on the 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 alternative Added make:controller# 30856 )
  • ArrayAccess Applied JsonResponseand TestResponse# 30817 )
  • Resource--seed alternative Added make::model# 30828 , 2cd9417 )

constant

  • Fixed creating two indexes instead of one when using change()# 30843 )
  • Mailable3c8ccc2 ) Block duplicate attachments in
  • ServiceProvider for PHP 7.4 in Lumen# 30819 )
  • Fixed model validation that didn't make sense in database validation rules ( # 30840 )

Updated


  Quote

KARABAY A, 2019 . Laravel 6.8.0 Out,

https://www.karabayyazilim.com/blog/laravel-680-cikti-2019-12-19-072315

(Accessed December 19, 2019).


  Share this post

Comments (0)

Comment

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