protected function getDatabaseConnectionConfig($connection)
    {
        $connections = $this->proxy->get('database.connections');
        if (!isset($connections[$connection])) {
            throw new Exception('Unknown database connection: ' . $connection);
        }
        $config = $connections[$connection];
        if (!in_array($config['driver'], ['mysql', 'pgsql'])) {
            throw new Exception('Currently only MySQL and PostgreSQL databases are supported using the laravel config');
        }
        return $config;
    }
protected function getDatabaseConnectionConfig($connection)
    {
        $connections = $this->proxy->get('database.connections');
        if (!isset($connections[$connection])) {
            throw new Exception('Unknown database connection: ' . $connection);
        }
        $config = $connections[$connection];
        if (!in_array($config['driver'], ['mysql', 'pgsql'])) {
            throw new Exception('Currently only MySQL and PostgreSQL databases are supported using the laravel config');
        }
        return $config;
    }
protected function getDatabaseConnectionConfig ( $ connection ) { $ connections = $ this -> proxy -> get ( 'database.connections' ) ; if ( ! isset ( $ connections [ $ connection ] ) ) { throw new Exception ( 'Unknown database connection: ' . $ connection ) ; } $ config = $ connections [ $ connection ] ; if ( ! in_array ( $ config [ 'driver' ] , [ 'mysql' , 'pgsql' ] ) ) { throw new Exception ( 'Currently only MySQL and PostgreSQL databases are supported using the laravel config' ) ; } return $ config ; }
Get a database connection configuration.

@param  string $connection
@return array
@throws \Exception
Get a database connection configuration .