*/ public function handle(): array { return [ 'allMembers' => MemberResource::collection(Member::slangOrdered()->get()), 'countries' => Country::pluck('name', 'id'), 'defaultCountry' => Country::firstWhere('name', 'Deutschland')->id, 'compilers' => app(ContributionFactory::class)->compilerSelect(), ]; } public function asController(): Response { session()->put('menu', 'contribution'); session()->put('title', 'Zuschüsse'); return Inertia::render('contribution/VIndex', $this->handle()); } }