Skip to content

Commit d6f7dc5

Browse files
author
Chris Cho
committed
rst fixes
1 parent ffcc0a5 commit d6f7dc5

File tree

3 files changed

+50
-57
lines changed

3 files changed

+50
-57
lines changed

docs/index.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@ Quick Start
4646

4747
Learn how to create and configure a Laravel web application to connect to
4848
MongoDB hosted on MongoDB Atlas by using {+odm-short+} and begin working
49-
with data in the :ref:`laravel-quck-start` section.
50-
51-
Getting Started
52-
---------------
53-
54-
Learn how to install and configure your app to MongoDB by using the
55-
{+odm-short+} in the :ref:`laravel-install` section.
49+
with data in the :ref:`laravel-quick-start` section.
5650

5751
Fundamentals
5852
------------
@@ -78,7 +72,7 @@ Reporting Issues
7872
We are lucky to have a vibrant PHP community that includes users of varying
7973
experience with MongoDB PHP Library and {+odm-short+}. To get support for
8074
general questions, search or post in the
81-
:community-forum:`MongoDB Community Forums <>`__.
75+
:community-forum:`MongoDB Community Forums <>`.
8276

8377
To learn more about MongoDB support options, see the
8478
`Technical Support <https://www.mongodb.org/about/support>`__ page.

docs/quick-start.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ that connects to a MongoDB deployment.
6060
/quick-start/create-a-deployment/
6161
/quick-start/create-a-connection-string/
6262
/quick-start/configure-mongodb/
63-
/quick-start/create-a-model-view-controller/
6463
/quick-start/view-data/
6564
/quick-start/write-data/
6665
/quick-start/next-steps/

docs/quick-start/view-data.txt

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ View Sample MongoDB Data
4545

4646
Your ``Movie.php`` file should contain the following code:
4747

48-
.. code-block:: php
48+
.. code-block:: php
4949

50-
<?php
50+
<?php
5151

52-
namespace App\Models;
52+
namespace App\Models;
5353

54-
use MongoDB\Laravel\Eloquent\Model;
54+
use MongoDB\Laravel\Eloquent\Model;
5555

56-
class Movie extends Model
57-
{
58-
protected $connection = 'mongodb';
59-
}
56+
class Movie extends Model
57+
{
58+
protected $connection = 'mongodb';
59+
}
6060

6161
.. step:: Add a Controller Function
6262

@@ -82,7 +82,7 @@ View Sample MongoDB Data
8282

8383
Open the ``web.php`` file in the ``routes`` directory.
8484
Add an import for the ``MovieController`` and a route called
85-
``browse_movies`` as shown in the following code:
85+
``browse_movies`` as shown in the following code:
8686

8787
.. code-block:: php
8888

@@ -107,36 +107,36 @@ View Sample MongoDB Data
107107

108108
INFO View [resources/views/browse_movie.blade.php] created successfully.
109109

110-
Open the ``browse_movie.blade.php`` view file in the ``resources/views``
111-
directory. Replace the contents with the following code:
112-
113-
.. code-block:: bash
114-
115-
<!DOCTYPE html>
116-
<html>
117-
<head>
118-
<title>Browse Movies</title>
119-
</head>
120-
<body>
121-
<h2>Movies</h2>
122-
123-
@forelse ($movies as $movie)
124-
<p>
125-
Title: {{ $movie->title }}<br>
126-
Year: {{ $movie->year }}<br>
127-
Runtime: {{ $movie->runtime }}<br>
128-
IMDB Rating: {{ $movie->imdb['rating'] }}<br>
129-
IMDB Votes: {{ $movie->imdb['votes'] }}<br>
130-
Plot: {{ $movie->plot }}<br>
131-
</p>
132-
@empty
133-
<p>No results</p>
134-
@endforelse
135-
136-
</body>
137-
</html>
138-
139-
.. step:: Start your Laravel Application
110+
Open the ``browse_movie.blade.php`` view file in the ``resources/views``
111+
directory. Replace the contents with the following code:
112+
113+
.. code-block:: bash
114+
115+
<!DOCTYPE html>
116+
<html>
117+
<head>
118+
<title>Browse Movies</title>
119+
</head>
120+
<body>
121+
<h2>Movies</h2>
122+
123+
@forelse ($movies as $movie)
124+
<p>
125+
Title: {{ $movie->title }}<br>
126+
Year: {{ $movie->year }}<br>
127+
Runtime: {{ $movie->runtime }}<br>
128+
IMDB Rating: {{ $movie->imdb['rating'] }}<br>
129+
IMDB Votes: {{ $movie->imdb['votes'] }}<br>
130+
Plot: {{ $movie->plot }}<br>
131+
</p>
132+
@empty
133+
<p>No results</p>
134+
@endforelse
135+
136+
</body>
137+
</html>
138+
139+
.. step:: Start your Laravel Application
140140

141141
Run the following command from the application root directory
142142
to start your PHP built-in web server:
@@ -154,17 +154,17 @@ View Sample MongoDB Data
154154

155155
Press Ctrl+C to stop the server
156156

157-
.. step:: View the Movie Data
157+
.. step:: View the Movie Data
158158

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.
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.
161161

162-
.. tip::
162+
.. tip::
163163

164-
You can run the ``php artisan route:list`` command from your application
165-
root directory to view a list of available routes.
164+
You can run the ``php artisan route:list`` command from your application
165+
root directory to view a list of available routes.
166166

167-
.. include:: /includes/quick-start/troubleshoot.rst
167+
.. include:: /includes/quick-start/troubleshoot.rst
168168

169-
.. button:: Next: Write Data
170-
:uri: /quick-start/write-data/
169+
.. button:: Next: Write Data
170+
:uri: /quick-start/write-data/

0 commit comments

Comments
 (0)