|null $recovery_codes */ class TwoFactor extends Model { protected $fillable = ['user_id', 'secret', 'recovery_codes', 'confirmed_at', 'last_step', 'required_since']; protected function casts(): array { return ['secret' => 'encrypted', 'recovery_codes' => 'encrypted:array', 'confirmed_at' => 'datetime', 'required_since' => 'datetime']; } public function getTable(): string { return Names::table('two_factor'); } }