Gebruik in Laravel de 'dsn'-sleutel in config/database.php zoals hieronder getoond om de volledige cluster-url te vermelden.
'mongodb_conn' => [
'driver' => 'mongodb',
'dsn'=>'mongodb://username:[email protected],host2/database?ssl=true&replicaSet=replicaSet&authSource=admin',
'database' => 'my_data',
]