@@ -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.
0 commit comments