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