My Blog Posts

Laravel 6.7.0 Out

Laravel 6.7.0 Out


exceptionContext() Application Handler class a new Method

// App/Exceptions/Handler.php
protected function exceptionContext(Exception $e)
{
    if ($e instanceof CustomException) {
        return ['custom_context' => $e->getCustomProperty()];
    }

    return parent::exceptionContext($e);
}
Here, you can use the model instance to an example:
/**
 * Create a new job instance.
 *
 * @param  \App\Podcast  $podcast
 * @return void
 */
public function __construct(Podcast $podcast)
{
    $this->podcast = $podcast->withoutRelations();
}

The full list of the following new features and updates And At GitHub 6.6.2 to 6.7.0 you can see the full difference between Full version notes for Laravel 6.0 GitHub v6 changelog :

v6.7.0

Added

  • Added getQualifiedCreatedAtColumn() And getQualifiedUpdatedAtColumn() Methods HasTimestamps# 30792 )
  • Added exceptionContext() Method Exceptions\Handler# 30780 )
  • Added ability to make an error of mailstamping ( # 30799 , 4320b82 )
  • Added withoutRelations() And unsetRelations() Methods HasRelationships# 30802 )
  • Paged ResourceCollection::preserveQueryParameters() protection query parameters in api resources Added 30745 , e92a708 )

Fixed

  • Fixed models in string-based database validation rules ( # 30790 )
  • Fixed Routing\RedirectController()# 30783 )

Updated



Share this article


Comments (0)

Comment