From c481e473d81b84e7c09467d8f2a12f4849141b76 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 31 Dec 2021 00:58:16 -0700 Subject: [PATCH] Update Exception handler --- app/Exceptions/Handler.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index d72030a6b..236f933f1 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -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. *