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

Commit 4b6348a

Browse files
committed
"primaryKey" instead of "pk", see #3 (comment).
1 parent 8b074a8 commit 4b6348a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwoFactorAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ class TwoFactorAuth extends Model
3939
*/
4040
public function user() : BelongsTo
4141
{
42-
return $this->belongsTo(\App\User::class, config('twofactor-auth.models.user.pk', 'id'));
42+
return $this->belongsTo(\App\User::class, config('twofactor-auth.models.user.primaryKey', 'id'));
4343
}
4444
}

0 commit comments

Comments
 (0)