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 4018b4b + 729b74e commit 1826784Copy full SHA for 1826784
src/Jenssegers/Mongodb/Schema/Blueprint.php
@@ -64,7 +64,7 @@ public function index($columns = null, $options = [])
64
$columns = $transform;
65
}
66
67
- $this->collection->ensureIndex($columns, $options);
+ $this->collection->createIndex($columns, $options);
68
69
return $this;
70
@@ -185,7 +185,7 @@ public function expire($columns, $seconds)
185
*/
186
public function create()
187
{
188
- $collection = $this->collection->getName();
+ $collection = $this->collection->getCollectionName();
189
190
$db = $this->connection->getMongoDB();
191
0 commit comments