Skip to content

Commit 08855cb

Browse files
committed
small fixes
1 parent d5bc8d4 commit 08855cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/fundamentals/read-operations.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ from a collection:
4444

4545
.. code-block:: php
4646

47-
SampleModel::where('<field name>', <value>)
47+
SampleModel::where('<field name>', '<value>')
4848
->first();
4949

5050
To view a runnable example that finds one document, see the
@@ -64,7 +64,7 @@ query filter from a collection:
6464

6565
.. code-block:: php
6666

67-
SampleModel::where('<field name>', <value>)
67+
SampleModel::where('<field name>', '<value>')
6868
->get();
6969

7070
To view a runnable example that finds documents, see the
@@ -107,8 +107,8 @@ field in a collection's documents:
107107
To learn more about searching on text fields, see the
108108
:ref:`laravel-retrieve-text-search` guide.
109109

110-
Count Documents in a Collection
111-
-------------------------------
110+
Count Documents
111+
---------------
112112

113113
The following code shows how to count documents in a collection:
114114

@@ -177,9 +177,9 @@ from MongoDB:
177177

178178
.. code-block:: php
179179

180-
Movie::where('field name', '<value>')
181-
->orderBy('<field to sort on>')
182-
->get();
180+
SampleModel::where('field name', '<value>')
181+
->orderBy('<field to sort on>')
182+
->get();
183183

184184
To learn more about modifying how {+odm-long+} returns results, see the
185185
:ref:`laravel-read-modify-results` guide.

0 commit comments

Comments
 (0)