File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 4
4
Find a Document
5
5
===============
6
6
7
- You can retrieve a single document from a collection by calling the ``where()`` and
7
+ You can retrieve a single document from a collection by chaining the ``where()`` and
8
8
``first()`` methods on an Eloquent model or a query builder.
9
9
10
10
Pass a query filter to the ``where()`` method and call the ``first()`` method to return
11
11
one document in the collection that matches the filter. If multiple documents match the
12
12
query filter, ``first()`` returns the first matching document according to the documents'
13
- :term:`natural order` in the database or according to the sort order specified by the
14
- ``orderBy()`` method.
13
+ :term:`natural order` in the database or according to the sort order that you can specify
14
+ by using the ``orderBy()`` method.
15
15
16
16
To learn more about retrieving documents, see the :ref:`laravel-fundamentals-retrieve` guide.
17
17
@@ -111,5 +111,8 @@ To perform the find operation, start your Laravel application by running the fol
111
111
112
112
php artisan serve
113
113
114
- Then, open the URL http://127.0.0.1:8000/browse_movies in your web browser to view the expected
115
- output.
114
+ Then, open the following URL in your web browser to view the expected output:
115
+
116
+ .. code-block:: none
117
+
118
+ http://127.0.0.1:8000/browse_movies
You can’t perform that action at this time.
0 commit comments