put('menu', 'contribution'); session()->put('title', 'Zuschüsse'); return Inertia::render('contribution/VIndex', [ 'allMembers' => MemberResource::collection(Member::slangOrdered()->get()), 'countries' => Country::pluck('name', 'id'), 'defaultCountry' => Country::firstWhere('name', 'Deutschland')->id, ]); } public function generate(Request $request): BaseCompiler { /** @var class-string */ $type = $request->query('type'); return Tex::compile($type::fromRequest($request)); } }