src/ConnectionFactory.php
public function addConnection(array $config, $name = 'default')
    {
        $this->connectionResolver->addConnection(
            $this->make($config),
            $name
        );

        return $this;
    }
public function addConnection(array $config, $name = 'default')
    {
        $this->connectionResolver->addConnection(
            $this->make($config),
            $name
        );

        return $this;
    }
public function addConnection ( array $ config , $ name = 'default' ) { $ this -> connectionResolver -> addConnection ( $ this -> make ( $ config ) , $ name ) ; return $ this ; }
Register a connection.

@param  array   $config
@param  string  $name
@return self
Register a connection .