Update Exception handler

pull/3112/head
Daniel Supernault 2021-12-31 00:58:16 -07:00
rodzic d820669bd1
commit c481e473d8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -41,6 +41,18 @@ class Handler extends ExceptionHandler
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.
*