put('menu', 'contribution'); session()->put('title', 'Zuschüsse'); return Inertia::render('contribution/VIndex', [ 'allMembers' => MemberResource::collection(Member::slangOrdered()->get()), ]); } public function generate(Request $request): PdfGenerator { $data = app($request->query('type')); return app(PdfGenerator::class)->setRepository($data)->render(); } }