Unverified Commit c1e02a92 authored by Giacomo Fabbian's avatar Giacomo Fabbian Committed by GitHub

Update README.md

parent 0b74edb0
...@@ -254,7 +254,7 @@ Schema::create('users', function($collection) ...@@ -254,7 +254,7 @@ Schema::create('users', function($collection)
$collection->unique('email'); $collection->unique('email');
}); });
``` ```
You can also pass all the parameter specified in the MongoDB docs [here](https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types) in the `$options` parameter. For example: You can also pass all the parameters specified in the MongoDB docs [here](https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types) in the `$options` parameter. For example:
``` ```
Schema::create('users', function($collection) Schema::create('users', function($collection)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment