*/ public function handle(MailmanSettings $settings): array { return [ 'base_url' => $settings->base_url, 'username' => $settings->username, 'password' => '', ]; } public function asController(MailmanSettings $settings): Response { session()->put('menu', 'setting'); session()->put('title', 'Mailman-Einstellungen'); return Inertia::render('setting/Mailman', [ 'data' => $this->handle($settings), ]); } }