Skip to content

Commit 432456b

Browse files
authored
Fix wrong name for driver options in docs (#3074)
1 parent 58682e1 commit 432456b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/fundamentals/connection/connect-to-mongodb.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ For a MongoDB database connection, you can specify the following details:
157157
connection behavior. To learn more about connection options, see
158158
:ref:`laravel-connection-auth-options`.
159159

160-
* - ``driverOptions``
160+
* - ``driver_options``
161161
- Specifies options specific to pass to the {+php-library+} that
162162
determine the driver behavior for that connection. To learn more about
163163
driver options, see :ref:`laravel-driver-options`.
@@ -170,7 +170,7 @@ For a MongoDB database connection, you can specify the following details:
170170
- ``host``
171171
- ``username``
172172
- ``password``
173-
- ``options`` and ``driverOptions``, which are specified by the option name
173+
- ``options`` and ``driver_options``, which are specified by the option name
174174

175175
The following example shows how you can specify your MongoDB connection details
176176
in the ``connections`` array item:
@@ -187,7 +187,7 @@ in the ``connections`` array item:
187187
'maxPoolSize' => 20,
188188
'w' => 'majority',
189189
],
190-
'driverOptions' => [
190+
'driver_options' => [
191191
'serverApi' => 1,
192192
],
193193
],

docs/fundamentals/connection/connection-options.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Connection Options
99
:values: reference
1010

1111
.. meta::
12-
:keywords: code example, data source name, dsn, authentication, configuration, options, driverOptions
12+
:keywords: code example, data source name, dsn, authentication, configuration, options, driver_options
1313

1414
.. contents:: On this page
1515
:local:
@@ -329,7 +329,7 @@ connections and all operations between a Laravel application and MongoDB.
329329

330330
You can specify driver options in your Laravel web application's
331331
``config/database.php`` configuration file. To add driver options,
332-
add the setting and value as an array item in the ``driverOptions`` array
332+
add the setting and value as an array item in the ``driver_options`` array
333333
item, as shown in the following example:
334334

335335
.. code-block:: php
@@ -340,7 +340,7 @@ item, as shown in the following example:
340340
'dsn' => 'mongodb+srv://mongodb0.example.com/',
341341
'driver' => 'mongodb',
342342
'database' => 'sample_mflix',
343-
'driverOptions' => [
343+
'driver_options' => [
344344
'serverApi' => 1,
345345
'allow_invalid_hostname' => false,
346346
],

0 commit comments

Comments
 (0)