From 1fd4d7060b9603c7fd2478bc0b34a77875147e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Tobias=20de=20Freitas=20Neto?= Date: Wed, 30 Aug 2023 22:27:21 -0400 Subject: [PATCH] =?UTF-8?q?Atualizando=20retorno=20do=20m=C3=A9todo=20rend?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Exceptions/CustomExceptionHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/Exceptions/CustomExceptionHandler.php b/src/app/Exceptions/CustomExceptionHandler.php index 8e5b6a7..8009f71 100644 --- a/src/app/Exceptions/CustomExceptionHandler.php +++ b/src/app/Exceptions/CustomExceptionHandler.php @@ -6,6 +6,7 @@ use Ae3\LaravelLogsLayer\app\Enums\LogsLevelsEnum; use Exception; use Ae3\LaravelLogsLayer\app\Traits\LogTrait; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; @@ -41,9 +42,9 @@ class CustomExceptionHandler extends ExceptionHandler * * @param Request $request * @param Exception $exception - * @return Response + * @return JsonResponse|Response|\Symfony\Component\HttpFoundation\Response */ - public function render($request, Exception $exception): Response + public function render($request, Exception $exception) { return parent::render($request, $exception); }