put('menu', 'member'); session()->put('title', 'Rechnungen versenden'); return Inertia::render('sendpayment/VForm', [ 'types' => app(ActionFactory::class)->allLinks(), ]); } /** * @return Response|Responsable */ public function send(Request $request) { $repo = app(DocumentFactory::class)->forAll($request->type, 'Post'); if (is_null($repo)) { return response()->noContent(); } $pdfFile = Tex::compile($repo); app(DocumentFactory::class)->afterAll($request->type, 'Post'); return $pdfFile; } }