*/ public function handle(FormSettings $settings): array { return [ 'data' => [ 'register_url' => $settings->registerUrl, ], ]; } public function asController(FormSettings $settings): Response { session()->put('menu', 'setting'); session()->put('title', 'Module'); return Inertia::render('setting/Form', [ 'data' => $this->handle($settings), ]); } }