From 5a83b5a8b4139173c8ad8332943d915267d7963c Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 11 Nov 2021 22:38:03 +0100 Subject: [PATCH] Fixed: Create payment --- app/Payment/PaymentController.php | 2 +- resources/js/views/member/Payments.vue | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/Payment/PaymentController.php b/app/Payment/PaymentController.php index 92a121c8..84cdca34 100644 --- a/app/Payment/PaymentController.php +++ b/app/Payment/PaymentController.php @@ -27,7 +27,7 @@ class PaymentController extends Controller 'status_id' => 'required|exists:statuses,id', ])); - return redirect()->route('member.payment.index', ['member' => $member]); + return redirect()->back(); } public function edit(Member $member, Request $request, Payment $payment) { diff --git a/resources/js/views/member/Payments.vue b/resources/js/views/member/Payments.vue index d64ef464..092e0ce9 100644 --- a/resources/js/views/member/Payments.vue +++ b/resources/js/views/member/Payments.vue @@ -1,6 +1,6 @@