'required|string', 'default_group_id' => 'required', 'mglnr' => 'required', ]; } public function mount(): void { $this->mglnr = app(NamiSettings::class)->mglnr; $this->default_group_id = app(NamiSettings::class)->default_group_id; } public function save(): void { $validated = $this->validate(); try { NamiLoginCheckAction::run([ 'mglnr' => $this->mglnr, 'password' => $this->password, ]); app(NamiSettings::class)->fill($validated)->save(); $this->dispatch('success', 'Einstellungen gespeichert.'); } catch (LoginException $e) { throw ValidationException::withMessages([ 'mglnr' => 'Login fehlgeschlagen.', ]); } } public function render() { return <<<'HTML'
Hier kannst du deine Zugangsdaten zu NaMi anpassen, falls sich z.B. dein Passwort geƤndert hat.
HTML; } }