Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 413db1c

Browse files
authored
Update README.md example of creating a migration with unique index (#61)
1 parent 4801fb9 commit 413db1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ There is nothing special needed for this to function, simply declare a `uuid` co
4646
```php
4747
Schema::create('posts', function (Blueprint $table) {
4848
$table->increments('id');
49-
$table->efficientUuid('uuid')->index();
49+
$table->efficientUuid('uuid')->unique();
5050
$table->string('title');
5151
$table->text('body');
5252
$table->timestamps();

0 commit comments

Comments
 (0)