Skip to content

Commit 9dc804d

Browse files
authored
Merge pull request #15 from deviouspk/patch-1
Bugfix add collection with options
2 parents 4d81b40 + ca095ff commit 9dc804d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jenssegers/Mongodb/Schema/Blueprint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ public function expire($columns, $seconds)
236236
/**
237237
* @inheritdoc
238238
*/
239-
public function create()
239+
public function create($options = [])
240240
{
241241
$collection = $this->collection->getCollectionName();
242242

243243
$db = $this->connection->getMongoDB();
244244

245245
// Ensure the collection is created.
246-
$db->createCollection($collection);
246+
$db->createCollection($collection, $options);
247247
}
248248

249249
/**

0 commit comments

Comments
 (0)