src/Http/Requests/Request.php
public function response(array $errors): JsonResponse
    {
        return $this->respondValidationError(
            ApiResponse::CODE_VALIDATION_ERROR,
            $this->transformErrors($errors)
        );
    }
public function response(array $errors): JsonResponse
    {
        return $this->respondValidationError(
            ApiResponse::CODE_VALIDATION_ERROR,
            $this->transformErrors($errors)
        );
    }
public function response ( array $ errors ) : JsonResponse { return $ this -> respondValidationError ( ApiResponse :: CODE_VALIDATION_ERROR , $ this -> transformErrors ( $ errors ) ) ; }
Method throws validation error response.

@param  array $errors
@return \Illuminate\Http\JsonResponse
Method throws validation error response .