File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -247,11 +247,17 @@ schema builder method in your application.
247
247
You can also use the following methods to return more information about the
248
248
collection fields:
249
249
250
- - ``Schema::hasColumn(string $<field name>)``: checks if the specified field exists
250
+ - ``Schema::hasColumn(string $<collection>, string $< field name>)``: checks if the specified field exists
251
251
in at least one document
252
- - ``Schema::hasColumns(string[] $<field names>)``: checks if each specified field exists
252
+ - ``Schema::hasColumns(string $<collection>, string [] $<field names>)``: checks if each specified field exists
253
253
in at least one document
254
254
255
+ .. note::
256
+
257
+ MongoDB is a schemaless database, so the preceding functions query the specified
258
+ collection rather than the database schema. If the collection doesn't exist
259
+ or is empty, these functions return a value of ``false``.
260
+
255
261
Example
256
262
```````
257
263
You can’t perform that action at this time.
0 commit comments