@@ -44,7 +44,7 @@ from a collection:
44
44
45
45
.. code-block:: php
46
46
47
- SampleModel::where('<field name>', <value>)
47
+ SampleModel::where('<field name>', ' <value>' )
48
48
->first();
49
49
50
50
To view a runnable example that finds one document, see the
@@ -64,7 +64,7 @@ query filter from a collection:
64
64
65
65
.. code-block:: php
66
66
67
- SampleModel::where('<field name>', <value>)
67
+ SampleModel::where('<field name>', ' <value>' )
68
68
->get();
69
69
70
70
To view a runnable example that finds documents, see the
@@ -107,8 +107,8 @@ field in a collection's documents:
107
107
To learn more about searching on text fields, see the
108
108
:ref:`laravel-retrieve-text-search` guide.
109
109
110
- Count Documents in a Collection
111
- -------------------------------
110
+ Count Documents
111
+ ---------------
112
112
113
113
The following code shows how to count documents in a collection:
114
114
@@ -177,9 +177,9 @@ from MongoDB:
177
177
178
178
.. code-block:: php
179
179
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();
183
183
184
184
To learn more about modifying how {+odm-long+} returns results, see the
185
185
:ref:`laravel-read-modify-results` guide.
0 commit comments