File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,14 @@ Laravel retrieves results from the ``flowers`` collection:
145
145
146
146
Flower::where('name', 'Water Lily')->get()
147
147
148
+ .. note::
149
+
150
+ Starting in {+odm-short+} v4.8, the ``DB::collection()`` method
151
+ is deprecated. As shown in the following example, you can use the ``DB::table()``
152
+ method to access a MongoDB collection.
153
+
148
154
If you are unable to accomplish your operation by using an Eloquent
149
- model, you can access the query builder by calling the ``collection ()``
155
+ model, you can access the query builder by calling the ``table ()``
150
156
method on the ``DB`` facade. The following example shows the same query
151
157
as in the preceding example, but the query is constructed by using the
152
158
``DB::table()`` method:
You can’t perform that action at this time.
0 commit comments