Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Update README.md example of creating a migration with unique index (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK authored May 23, 2023
1 parent 4801fb9 commit 413db1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ There is nothing special needed for this to function, simply declare a `uuid` co
```php
Schema::create('posts', function (Blueprint $table) {
$table->increments('id');
$table->efficientUuid('uuid')->index();
$table->efficientUuid('uuid')->unique();
$table->string('title');
$table->text('body');
$table->timestamps();
Expand Down

0 comments on commit 413db1c

Please sign in to comment.