*/ public function handle(NamiSettings $settings): array { return [ 'mglnr' => $settings->mglnr, 'password' => '', 'default_group_id' => $settings->default_group_id, ]; } public function asController(NamiSettings $settings): Response { session()->put('menu', 'setting'); session()->put('title', 'NaMi-Settings'); return Inertia::render('setting/Nami', [ 'data' => $this->handle($settings), ]); } }