2021-07-18 17:28:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
|
|
|
class WebauthnKey extends \LaravelWebauthn\Models\WebauthnKey
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
2021-08-07 20:06:45 +00:00
|
|
|
public const RESOURCE_NAME = 'webauthn_key';
|
|
|
|
|
2021-07-18 17:28:14 +00:00
|
|
|
public function user(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
}
|
|
|
|
}
|