Laravel 6.7.0 Out

exceptionContext() Application Handler class a new method

// App/Exceptions/Handler.phpprotectedfunctionexceptionContext(Exception $e){ if ($e instanceof CustomException) { return ['custom_context' => $e->getCustomProperty()]; } returnparent::exceptionContext($e);}
Here, you can duplicate the model instance and remove relationships Here's an example:
/** * Create a new job instance. * * @param \App\Podcast $podcast * @return void */publicfunction__construct(Podcast $podcast){ $this->podcast = $podcast->withoutRelations();}

The full list of new features and updates below and On GitHub 6.6.2 vs 6.7.0 you can see the full difference between Full release notes for Laravel 6.0 on GitHub v6 is available on the changelog :

v6.7.0

Added

  • Added getQualifiedCreatedAtColumn() and getQualifiedUpdatedAtColumn() Methods HasTimestamps# 30792 )
  • Added exceptionContext() Method Exceptions\Handler# 30780 )
  • Added capability for postage stamp handling to throw errors ( # 30799 , 4320b82 )
  • Added withoutRelations() and unsetRelations() Methods HasRelationships# 30802 )
  • Paginated ResourceCollection::p reserveQueryParameters() protection in API resources for query parameters Added 30745 , e92a708 )

constant

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

Updated

  Quote

KARABAY A, 2019 . Laravel 6.7.0 Out,

https://www.karabayyazilim.com/blog/php/framework/laravel/laravel-670-cikti-2019-12-12-193107

(Accessed December 12, 2019).


  Share this post

Comments (0)

Comment

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