diff --git a/src/Exceptions/ExceptionHandler.php b/src/Exceptions/ExceptionHandler.php index 81c92e1..061d4eb 100644 --- a/src/Exceptions/ExceptionHandler.php +++ b/src/Exceptions/ExceptionHandler.php @@ -50,7 +50,7 @@ public function render($request, Throwable $e) if ($trans == 'auth.unauthenticated') $trans = null; return $this->shouldReturnJson($request, $e) - ? json()->exception($e, null, $trans, 401) + ? json()->exception($e, null, $trans, [], 401) : redirect()->guest($e->redirectTo() ?? route('login')); } elseif ($e instanceof ValidationException) { return $this->convertValidationExceptionToResponse($e, $request);