public function disconnect(string $name = null)
    {
        $name = $name ?: $this->getDefaultConnection();

        unset($this->connections[$name]);
    }
public function disconnect(string $name = null)
    {
        $name = $name ?: $this->getDefaultConnection();

        unset($this->connections[$name]);
    }
public function disconnect ( string $ name = null ) { $ name = $ name ? : $ this -> getDefaultConnection ( ) ; unset ( $ this -> connections [ $ name ] ) ; }
Disconnect from the given connection.

@param string|null $name

@return void
Disconnect from the given connection .