diff --git a/MIGRATIONS.md b/MIGRATIONS.md index 995139b..e88d924 100644 --- a/MIGRATIONS.md +++ b/MIGRATIONS.md @@ -85,6 +85,7 @@ All customizable models can be configured with additional fillable, guarded, hid Customize the model using the available static properties: +- `$useConnection`: The connection name to use. - `$useCasts`: The casts attributes to merge. - `$useFillable`: The fillable attributes to merge. - `$useGuarded`: The guarded attributes to merge. diff --git a/composer.json b/composer.json index 05827fd..6925660 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "illuminate/http": "10.*|11.*", "illuminate/session": "10.*|11.*", "illuminate/support": "10.*|11.*", - "laragear/meta-model": "1.*" + "laragear/meta-model": "^1.1" }, "require-dev": { "ext-sodium": "*", diff --git a/src/Migrations/WebAuthnAuthenticationMigration.php b/src/Migrations/WebAuthnAuthenticationMigration.php index d83b2b2..7bc5134 100644 --- a/src/Migrations/WebAuthnAuthenticationMigration.php +++ b/src/Migrations/WebAuthnAuthenticationMigration.php @@ -18,7 +18,7 @@ public function create(Blueprint $table): void // on the Assertion procedure as the device returns which credential it used. $table->string('id', 510)->primary(); - $this->createMorph($table, 'authenticatable'); + $this->createMorph($table, 'authenticatable', 'webauthn_user_index'); // When requesting to create a credential, the app will set a "user handle" to be // a UUID to anonymize the user personal information. If a second credential is