My Blog Posts

Laravel 6.15.0 Released

Laravel 6.15.0 Released


Authentication

A new verified authorization is validated 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, basic exception Handler added a "getHttpExceptionView ()" method to the class. If you need some specific logic in getting an view to create exception, the app 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 A Row to a Table with Artisan

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

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

You can see the full list of new features and updates on GitHub and the differences between 6.14.0 and 6.15.0 of all. You can find all version 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 feature added Illuminate\Console\Scheduling\Schedule# 31354 )
  • ,dispatchAfterResponse In BusFake support added# 31418 , e59597f )
  • Illuminate\Foundation\Exceptions\Handler::getHttpExceptionView() method # 31420 )
  • Artisan commands allowed to be added rows to provincial tables ( #31426 )

Fixed

Updated

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



Share this article


Comments (0)

Comment