Skip to content

Commit 3663a0c

Browse files
author
Chris Cho
committed
PRR fixes
1 parent da6b2b0 commit 3663a0c

File tree

6 files changed

+26
-31
lines changed

6 files changed

+26
-31
lines changed

docs/quick-start/configure-mongodb.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Configure Your MongoDB Connection
1414
.. procedure::
1515
:style: connected
1616

17-
.. step:: Set the Connection String in the Database Configuration
17+
.. step:: Set the connection string in the database configuration
1818

1919
Open the ``database.php`` file in the ``config`` directory and
2020
set the default database connection to ``mongodb`` as shown
@@ -41,7 +41,7 @@ Configure Your MongoDB Connection
4141

4242
// ...
4343

44-
.. step:: Add the Laravel MongoDB Provider
44+
.. step:: Add the Laravel MongoDB provider
4545

4646
Open the ``app.php`` file in the ``config`` directory and
4747
add the following entry into the ``providers`` array:

docs/quick-start/create-a-connection-string.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ manual.
2020
.. procedure::
2121
:style: connected
2222

23-
.. step:: Find your MongoDB Atlas Connection String
23+
.. step:: Find your MongoDB Atlas connection string
2424

2525
To retrieve your connection string for the deployment that
2626
you created in the :ref:`previous step <laravel-quick-start-create-deployment>`,
@@ -31,7 +31,7 @@ manual.
3131
.. figure:: /includes/figures/atlas_connection_select_cluster.png
3232
:alt: The connect button in the clusters section of the Atlas UI
3333

34-
Proceed to the :guilabel:`Connect your application` section and select
34+
Proceed to the :guilabel:`Connect your application` section. Select
3535
"PHP" from the :guilabel:`Driver` selection menu and the version
3636
that best matches the version you installed from the :guilabel:`Version`
3737
selection menu.
@@ -41,12 +41,12 @@ manual.
4141
Deselect the :guilabel:`Include full driver code example` option to view
4242
the connection string.
4343

44-
.. step:: Copy your Connection String
44+
.. step:: Copy your connection string
4545

4646
Click the button on the right of the connection string to copy it
4747
to your clipboard.
4848

49-
.. step:: Update the Placeholders
49+
.. step:: Update the placeholders
5050

5151
Paste this connection string into a file in your preferred text editor
5252
and replace the ``<username>`` and ``<password>`` placeholders with

docs/quick-start/create-a-deployment.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,21 @@ your MongoDB database in the cloud.
1111
.. procedure::
1212
:style: connected
1313

14-
.. step:: Create a Free MongoDB deployment on Atlas
14+
.. step:: Create a free MongoDB deployment on Atlas
1515

1616
Complete the :atlas:`Get Started with Atlas </getting-started?tck=docs_driver_laravel>`
1717
guide to set up a new Atlas account and load sample data into a new free
1818
tier MongoDB deployment.
1919

20-
.. step:: Save your Credentials
20+
.. step:: Save your credentials
2121

2222
After you create your database user, save that user's
2323
username and password to a safe location for use in an upcoming step.
2424

2525
After completing these steps, you have a new free tier MongoDB deployment on
2626
Atlas, database user credentials, and sample data loaded into your database.
2727

28-
.. note::
29-
30-
If you run into issues on this step, ask for help in the
31-
:community-forum:`MongoDB Community Forums <>`
32-
or submit feedback by using the :guilabel:`Share Feedback`
33-
tab on the right or bottom right side of this page.
28+
.. include:: /includes/quick-start/troubleshoot.rst
3429

3530
.. button:: Next: Create a Connection String
3631
:uri: /quick-start/create-a-connection-string/

docs/quick-start/download-and-install.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ to a Laravel web application.
5757

5858
Using version ^<version number> for laravel/installer
5959

60-
.. step:: Create a Laravel Application
60+
.. step:: Create a Laravel application
6161

6262
Run the following command to generate a new Laravel web application
6363
called ``{+quickstart-app-name+}``:
@@ -78,22 +78,22 @@ to a Laravel web application.
7878

7979
New to Laravel? Check out our bootcamp and documentation. Build something amazing!
8080

81-
.. step:: Add a Laravel Application Encryption Key
81+
.. step:: Add a Laravel application encryption key
8282

83-
Run the following command to add the Laravel application encryption
84-
key, which is required to encrypt cookies:
83+
Navigate to the application directory you created in the previous step:
8584

8685
.. code-block:: bash
8786

88-
php artisan key:generate
89-
90-
.. step:: Add {+odm-short+} to the Dependencies
87+
cd {+quickstart-app-name+}
9188

92-
Navigate to the application directory you created in the previous step:
89+
Run the following command to add the Laravel application encryption
90+
key, which is required to encrypt cookies:
9391

9492
.. code-block:: bash
9593

96-
cd {+quickstart-app-name+}
94+
php artisan key:generate
95+
96+
.. step:: Add {+odm-short+} to the dependencies
9797

9898
Run the following command to add the {+odm-short+} dependency to
9999
your application:

docs/quick-start/view-data.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ View MongoDB Data
1414
.. procedure::
1515
:style: connected
1616

17-
.. step:: Create a Model and Controller
17+
.. step:: Create a model and controller
1818

1919
Create a model called ``Movie`` to represent data from the sample
2020
``movies`` collection in your MongoDB database and the corresponding
@@ -33,7 +33,7 @@ View MongoDB Data
3333

3434
INFO Controller [app/Http/Controllers/MovieController.php] created successfully.
3535

36-
.. step:: Edit the Model to use {+odm-short+}
36+
.. step:: Edit the model to use {+odm-short+}
3737

3838
Open the ``Movie.php`` model in your ``app/Models`` directory and
3939
make the following edits:
@@ -56,7 +56,7 @@ View MongoDB Data
5656
protected $connection = 'mongodb';
5757
}
5858

59-
.. step:: Add a Controller Function
59+
.. step:: Add a controller function
6060

6161
Open the ``MovieController.php`` file in your ``app/Http/Controllers``
6262
directory. Replace the ``show()`` function with the
@@ -76,7 +76,7 @@ View MongoDB Data
7676
]);
7777
}
7878

79-
.. step:: Add a Web Route
79+
.. step:: Add a web route
8080

8181
Open the ``web.php`` file in the ``routes`` directory.
8282
Add an import for the ``MovieController`` and a route called
@@ -91,7 +91,7 @@ View MongoDB Data
9191

9292
Route::get('/browse_movies/', [MovieController::class, 'show']);
9393

94-
.. step:: Generate a View
94+
.. step:: Generate a view
9595

9696
Run the following command from the application root directory
9797
to create a view that displays movie data:
@@ -137,7 +137,7 @@ View MongoDB Data
137137
</body>
138138
</html>
139139

140-
.. step:: Start your Laravel Application
140+
.. step:: Start your Laravel application
141141

142142
Run the following command from the application root directory
143143
to start your PHP built-in web server:
@@ -155,7 +155,7 @@ View MongoDB Data
155155

156156
Press Ctrl+C to stop the server
157157

158-
.. step:: View the Movie Data
158+
.. step:: View the movie data
159159

160160
Open the URL http://127.0.0.1:8000/browse_movies in your web browser.
161161
The page shows a list of movies and details about each of them.

docs/quick-start/write-data.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Write Data to MongoDB
8787

8888
.. step:: View the Data
8989

90-
Open ``http://127.0.0.1:8000/browse_movies`` in your web browser to view
90+
Open http://127.0.0.1:8000/browse_movies in your web browser to view
9191
the movie information that you submitted. The inserted movie appears at
9292
the top of the results.
9393

0 commit comments

Comments
 (0)