src/IlluminateRegistry.php
public function getDefaultConnectionName()
    {
        if (isset($this->connections[$this->defaultConnection])) {
            return $this->defaultConnection;
        }

        return head($this->connections);
    }
public function getDefaultConnectionName()
    {
        if (isset($this->connections[$this->defaultConnection])) {
            return $this->defaultConnection;
        }

        return head($this->connections);
    }
public function getDefaultConnectionName ( ) { if ( isset ( $ this -> connections [ $ this -> defaultConnection ] ) ) { return $ this -> defaultConnection ; } return head ( $ this -> connections ) ; }
Gets the default connection name.

@return string The default connection name.
Gets the default connection name .