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($this->only(['mglnr', '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; } }