protected function verifyConnection()
    {
        if (count(config('database.connections', [])) > 1) {
            $connections = array_keys(config('database.connections'));
            $default = array_search(config('database.default'), $connections);

            return $this->choice('Which connection do we use?', $connections, $default);
        }

        return config('database.default');
    }
protected function verifyConnection()
    {
        if (count(config('database.connections', [])) > 1) {
            $connections = array_keys(config('database.connections'));
            $default = array_search(config('database.default'), $connections);

            return $this->choice('Which connection do we use?', $connections, $default);
        }

        return config('database.default');
    }
protected function verifyConnection ( ) { if ( count ( config ( 'database.connections' , [ ] ) ) > 1 ) { $ connections = array_keys ( config ( 'database.connections' ) ) ; $ default = array_search ( config ( 'database.default' ) , $ connections ) ; return $ this -> choice ( 'Which connection do we use?' , $ connections , $ default ) ; } return config ( 'database.default' ) ; }
Request connection or use default.

@return string
Request connection or use default .