diff --git a/database/migrations/2022_07_01_000000_create_webauthn_credentials.php b/database/migrations/2022_07_01_000000_create_webauthn_credentials.php index b5798e0..9d821a8 100644 --- a/database/migrations/2022_07_01_000000_create_webauthn_credentials.php +++ b/database/migrations/2022_07_01_000000_create_webauthn_credentials.php @@ -45,7 +45,7 @@ return new class extends Migration { { $table->string('id')->primary(); - $table->morphs('authenticatable'); + $table->morphs('authenticatable', 'webauthn_user_index'); // This is the user UUID that is generated automatically when a credential for the // given user is created. If a second credential is created, this UUID is queried