diff --git a/app/Exception/Handler/ErrExceptionHandler.php b/app/Exception/Handler/ErrExceptionHandler.php index c9e5042..862e13a 100644 --- a/app/Exception/Handler/ErrExceptionHandler.php +++ b/app/Exception/Handler/ErrExceptionHandler.php @@ -38,8 +38,7 @@ class ErrExceptionHandler extends ExceptionHandler $result = match ($urlArr[0]) { 'api' => $this->apiReturn->error($throwable->getMessage(),$throwable->getCode()), - 'admin' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()), - 'common' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()), + 'admin', 'common' => $this->adminReturn->error($throwable->getMessage(),$throwable->getCode()), default => null, };