From a907070be06be9326bcc0b0e1bff87f57c00b846 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 1 Sep 2016 04:47:35 -0700 Subject: [PATCH] fixes #835 --- src/Jenssegers/Mongodb/Schema/Blueprint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }