We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b89b07 commit 09c864fCopy full SHA for 09c864f
src/Schema/Builder.php
@@ -265,7 +265,14 @@ protected function getAllCollections()
265
{
266
$collections = [];
267
foreach ($this->connection->getMongoDB()->listCollections() as $collection) {
268
- $collections[] = $collection->getName();
+ $name = $collection->getName();
269
+
270
+ // Skip system collections
271
+ if (str_starts_with($name, 'system.')) {
272
+ continue;
273
+ }
274
275
+ $collections[] = $name;
276
}
277
278
return $collections;
0 commit comments