Laravel 6.15.0 Out

authentication

A new verified authorization is verified after it is received from the user provider:

use Illuminate\Auth\Events\Validated;Event::assertDispatched(Validated::class, function ($event) {
$this->assertSame('web', $event->guard);
$this->assertEquals(1, $event->user->id);
return true;
});

Custom Exception Views 

Maarten Buis, key Handler added a "getHttpExceptionView ()" method to the class. If you need some special logic about getting a view to create an Exception, the application Handler you can override this method in the subclass.

/**
* Get the view used to render HTTP exceptions.
*
* @param \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface $e
* @return string
*/
protected function getHttpExceptionView(HttpExceptionInterface $e)
{
return "errors::{$e->getStatusCode()}";
}

Add Rows to a Table with Artisan

appendRow You can add rows to tables in composer commands by using the method:

public function handle()
{
$table = $this->table(
['Column', 'Another column'],
[]
);
$table->appendRow(['Value', 'Another Value']);
$table->appendRow(['Value', 'Another Value']);
}

On GitHub you can see the full list of new features and updates, and the differences between 6.14.0 and 6.15.0 of all. You can find all release notes for Laravel 6.0 in the GitHub v6 change log:

v6.15.0

Added

  • Illuminate\Auth\Events\Validated # 31357 , 7ddac28 )
  • Blueprint macro# 31365 )
  • Macroable added property Illuminate\Console\Scheduling\Schedule# 31354 )
  • ,dispatchAfterResponse in Added BusFake support# 31418 , e59597f )
  • Illuminate\Foundation\Exceptions\Handler::getHttpExceptionView() method # 31420 )
  • Artisan commands allowed rows to be added to provincial tables ( #31426 )

constant

Updated

  • Split Console interaction updated ( #31376 )
  • UrlGenerator::isValid() Added sms link as method current URL ( # 31382 )
  • Upgrade CommonMark and use the given table extension ( #31411 )
  • Application::$terminatingCallbacks Make sure it resets Application::flush()# 31413 )
  • PhpRedisConnector::createClient() added serializer removal option # 31417 )

  Quote

KARABAY A, 2020 . Laravel 6.15.0 Out,

https://www.karabayyazilim.com/blog/php/framework/laravel/laravel-6150-cikti-2020-02-12-232708

(Accessed February 12, 2020).


  Share this post

Comments (0)

Comment

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