user('web'); abort_unless($actor instanceof User, 403); $request->validate(['page' => 'nullable|integer|min:1|max:1000000']); Inertia::encryptHistory(); $response = Inertia::render('payments/expense-allocation', $service->workspace($actor, $payment->id))->toResponse($request); $response->headers->set('Cache-Control', 'private, no-store, max-age=0'); return $response; } public function store(Request $request, ExternalPayment $payment, ExpenseAllocations $service): Response { $actor = $request->user('web'); abort_unless($actor instanceof User, 403); $service->save($actor, $payment->id, $request->all()); return back()->with('success', 'Imputação da despesa por categoria preservada.'); } }