['boolean'], 'allow_totp' => ['boolean'], 'allow_email' => ['boolean'], ]; } public function save(): void { $this->validate(); // TODO: Werte persistieren (DB/Settings) // settings()->put('security.2fa', [ // 'enforce' => $this->enforce, // 'allow_totp' => $this->allow_totp, // 'allow_email' => $this->allow_email, // ]); $this->dispatch('toast', body: '2FA-Einstellungen gespeichert.'); } public function render() { return view('livewire.ui.security.auth2fa-form'); } }