Update Exception handler

This commit is contained in:
Daniel Supernault 2021-12-31 00:58:16 -07:00
parent d820669bd1
commit c481e473d8
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -41,6 +41,18 @@ class Handler extends ExceptionHandler
parent::report($exception); parent::report($exception);
} }
/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register()
{
$this->reportable(function (\BadMethodCallException $e) {
return app()->environment() !== 'production';
});
}
/** /**
* Render an exception into an HTTP response. * Render an exception into an HTTP response.
* *