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.
2 parents 4d81b40 + ca095ff commit 40058c7Copy full SHA for 40058c7
src/Jenssegers/Mongodb/Schema/Blueprint.php
@@ -236,14 +236,14 @@ public function expire($columns, $seconds)
236
/**
237
* @inheritdoc
238
*/
239
- public function create()
+ public function create($options = [])
240
{
241
$collection = $this->collection->getCollectionName();
242
243
$db = $this->connection->getMongoDB();
244
245
// Ensure the collection is created.
246
- $db->createCollection($collection);
+ $db->createCollection($collection, $options);
247
}
248
249
0 commit comments