Files
newznab-tmux/app/Models/PasswordSecurity.php
2026-07-13 13:07:17 +02:00

38 lines
707 B
PHP

<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PasswordSecurity extends Model
{
use HasFactory; // @phpstan-ignore missingType.generics
/**
* @var array<string>
*/
protected $guarded = [];
/**
* @return array<string, string>
*/
protected function casts(): array
{
return [
'google2fa_enable' => 'boolean',
];
}
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}