Added mongo configuration

This commit is contained in:
Deon George
2021-06-25 13:40:50 +10:00
parent e207e0a1d8
commit 848f41b382
5 changed files with 312 additions and 84 deletions

View File

@@ -101,6 +101,20 @@ return [
#'sslrootcert' => env('DB_SSLROOTCERT', 'ca.crt'),
],
'mongodb' => [
'driver' => 'mongodb',
'host' => env('DB_MONGO_HOST', '127.0.0.1'),
'port' => env('DB_MONGO_PORT', 27017),
'database' => env('DB_MONGO_DATABASE', 'fido'),
'username' => env('DB_MONGO_USERNAME', 'mongo'),
'password' => env('DB_MONGO_PASSWORD', 'password'),
'options' => [
// here you can pass more settings to the Mongo Driver Manager
// see https://www.php.net/manual/en/mongodb-driver-manager.construct.php under "Uri Options" for a list of complete parameters that you can use
'database' => env('DB_AUTHENTICATION_DATABASE', 'admin'), // required with Mongo 3+
],
],
],
/*