*/ use HasFactory; use SoftDeletes; public const RESOURCE_NAME = 'ssh_key'; protected $table = 'user_ssh_keys'; protected $fillable = [ 'name', 'public_key', 'fingerprint', ]; public static array $validationRules = [ 'name' => ['required', 'string'], 'fingerprint' => ['required', 'string'], 'public_key' => ['required', 'string'], ]; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\Pterodactyl\Models\User, $this> */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }