update($request->validate([ 'nr' => 'required', 'subscription_id' => 'required|exists:subscriptions,id', 'status_id' => 'required|exists:statuses,id', ])); ClientMessage::make('Zahlung aktualisiert.')->shouldReload()->dispatch(); return response(''); } public function destroy(Request $request, Member $member, Payment $payment): Response { $payment->delete(); ClientMessage::make('Zahlung gelöscht.')->shouldReload()->dispatch(); return response(''); } }