@@ -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
5050To 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
7070To view a runnable example that finds documents, see the
@@ -107,8 +107,8 @@ field in a collection's documents:
107107To 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
113113The 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
184184To learn more about modifying how {+odm-long+} returns results, see the
185185:ref:`laravel-read-modify-results` guide.
0 commit comments