src/IlluminateRegistry.php
public function getConnections()
    {
        $connections = [];
        foreach ($this->getConnectionNames() as $name) {
            $connections[$name] = $this->getConnection($name);
        }

        return $connections;
    }
public function getConnections()
    {
        $connections = [];
        foreach ($this->getConnectionNames() as $name) {
            $connections[$name] = $this->getConnection($name);
        }

        return $connections;
    }
public function getConnections ( ) { $ connections = [ ] ; foreach ( $ this -> getConnectionNames ( ) as $ name ) { $ connections [ $ name ] = $ this -> getConnection ( $ name ) ; } return $ connections ; }
Gets an array of all registered connections.

@return array An array of Connection instances.
Gets an array of all registered connections .