@@ -49,14 +49,14 @@ View Sample MongoDB Data
49
49
50
50
<?php
51
51
52
- namespace App\Models;
52
+ namespace App\Models;
53
53
54
- use MongoDB\Laravel\Eloquent\Model;
54
+ use MongoDB\Laravel\Eloquent\Model;
55
55
56
- class Movie extends Model
57
- {
58
- protected $connection = 'mongodb';
59
- }
56
+ class Movie extends Model
57
+ {
58
+ protected $connection = 'mongodb';
59
+ }
60
60
61
61
.. step:: Add a Controller Function
62
62
@@ -102,6 +102,8 @@ View Sample MongoDB Data
102
102
103
103
php artisan make:view browse_movies
104
104
105
+ After you run the command, you should see the following message:
106
+
105
107
.. code-block:: none
106
108
:copyable: false
107
109
@@ -145,9 +147,9 @@ View Sample MongoDB Data
145
147
146
148
php artisan serve
147
149
148
- If the server starts successfully , you should see the following message:
150
+ After the server starts, you should see the following message:
149
151
150
- .. code-block: none
152
+ .. code-block:: none
151
153
:copyable: false
152
154
153
155
INFO Server running on [http://127.0.0.1:8000].
@@ -156,8 +158,8 @@ View Sample MongoDB Data
156
158
157
159
.. step:: View the Movie Data
158
160
159
- Open http://127.0.0.1:8000/browse_movies in your web browser. If it runs
160
- successfully, you should see a list of movies and details about each of them.
161
+ Open the URL http://127.0.0.1:8000/browse_movies in your web browser.
162
+ You should see a list of movies and details about each of them.
161
163
162
164
.. tip::
163
165
0 commit comments