@@ -95,14 +95,13 @@ Steps
95
95
'connections' => [
96
96
'mongodb' => [
97
97
'driver' => 'mongodb',
98
- 'dsn' => env('MONGODB_URI', ' <connection string>') ,
98
+ 'dsn' => ' <connection string>',
99
99
'database' => 'db',
100
100
],
101
101
102
- Ensure that you either replace the connection string placeholder
103
- in the preceding code or set the ``MONGODB_URI`` environment variable to
104
- your connection string before you run your application. To learn
105
- how to locate your connection string, see
102
+ Ensure that you replace the connection string placeholder
103
+ in the preceding code with your connection string before you run
104
+ your application. To learn how to locate your connection string, see
106
105
:ref:`laravel-quick-start-connection-string` in the Quick Start
107
106
guide.
108
107
@@ -218,7 +217,7 @@ Steps
218
217
]);
219
218
});
220
219
221
- After inserting the document, you can retrieve it by using the
220
+ After you insert the document, you can retrieve it by using the
222
221
``where()`` method as shown in the following code:
223
222
224
223
.. code-block:: php
@@ -318,7 +317,7 @@ Steps
318
317
319
318
MongoDB provides the Query API for optimized queries.
320
319
321
- You can begin building a query from a ``collection`` object.
320
+ You can begin to build a query by using a ``collection`` object.
322
321
Eloquent exposes the full capabilities of the underlying database
323
322
by using "raw queries," which Laravel sends to the database
324
323
without any processing from the Eloquent Query Builder.
@@ -408,7 +407,7 @@ Steps
408
407
$result->getDeletedCount() ];
409
408
});
410
409
411
- To learn more about performing CRUD operations, see the
410
+ To learn more about how to perform CRUD operations, see the
412
411
:ref:`laravel-fundamentals-write-ops` and
413
412
:ref:`laravel-fundamentals-read-ops` guides.
414
413
@@ -461,7 +460,7 @@ Steps
461
460
.. step:: Use indexes to optimize query performance.
462
461
463
462
You can create indexes to support your queries and improve
464
- performance. To learn more about creating indexes
463
+ performance. To learn more about how to create indexes
465
464
programmatically, see the :ref:`laravel-eloquent-indexes` section
466
465
of the Schema Builder guide.
467
466
0 commit comments