File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,7 @@ collection:
83
83
84
84
SampleModel::get();
85
85
86
- /* Or, use the all() method. */
87
-
86
+ // Or, use the all() method.
88
87
SampleModel::all();
89
88
90
89
To view a runnable example that finds documents, see the
@@ -116,8 +115,7 @@ The following code shows how to count documents in a collection:
116
115
117
116
SampleModel::count();
118
117
119
- /* You can also count documents that match a filter. */
120
-
118
+ // You can also count documents that match a filter.
121
119
SampleModel::where('<field name>', '<value>')
122
120
->count();
123
121
Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ matching document doesn't exist:
133
133
['upsert' => true],
134
134
);
135
135
136
- /* Or, use the upsert() method. */
137
-
136
+ // Or, use the upsert() method.
138
137
SampleModel::upsert(
139
138
[<documents to update or insert>],
140
139
'<unique field name>',
You can’t perform that action at this time.
0 commit comments