code: public function getConnection()
      {
          $database = Config::get('database');
          return new \mysqli($database['hostname'], $database['username'], $database['password'], $database['database'], $database['hostport']);
      }
docs: 数据库连接
  
  @return \mysqli