How to switch between mongoDB connection using Laravel jensseger/mongodb library?
I am using this library (the older version compatible with Laravel 9). This is my connection string. 'mongodb' => [ 'driver' => 'mongodb', 'host' => env('MONGODB_HOST', 'localhost'), 'port' => env('MONGODB_PORT', 27017), 'database' => env('MONGODB_DATABASE'), 'username' => env('MONGODB_USERNAME'), 'password' => env('MONGODB_PASSWORD'),…