$code, 'msg' => $message, ]; } public function responseApiWithData($code, $message, $data) { return [ 'code' => $code, 'msg' => $message, 'data' => $data, ]; } public function responseApiData($data){ return $data; } }