json([ 'code' => $code, 'msg' => $msg, 'data' => $data, ]); } static function success($data = []): \Illuminate\Http\JsonResponse { return self::reply(Responses::CODE_SUCCESS, 'success', $data); } static function error($msg = 'error', $data = []): \Illuminate\Http\JsonResponse { return self::reply(Responses::CODE_ERROR, $msg, $data); } }