diff --git a/src/Jenssegers/Mongodb/Schema/Blueprint.php b/src/Jenssegers/Mongodb/Schema/Blueprint.php index 0d0e1cb8f..f49aae1f3 100644 --- a/src/Jenssegers/Mongodb/Schema/Blueprint.php +++ b/src/Jenssegers/Mongodb/Schema/Blueprint.php @@ -236,7 +236,7 @@ public function sparse_and_unique($columns = null, $options = []) $options['sparse'] = true; $options['unique'] = true; - $this->index($columns, $options); + $this->index($columns, null, null, $options); return $this; }