diff --git a/src/Exceptions/Handler.php b/src/Exceptions/Handler.php index ce5ddb5b..a713d2ba 100644 --- a/src/Exceptions/Handler.php +++ b/src/Exceptions/Handler.php @@ -86,6 +86,10 @@ protected function shouldntReport(Exception $e) */ public function render($request, Exception $e) { + if (method_exists($e, 'render')) { + return $e->render($request); + } + if ($e instanceof HttpResponseException) { return $e->getResponse(); } elseif ($e instanceof ModelNotFoundException) {