From 42d6e2f66130889ebe4523455ad2915eaa9d58e0 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Wed, 4 Jan 2023 12:40:59 +0100 Subject: [PATCH] fixed: nr should not be numeric --- app/Payment/PaymentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Payment/PaymentController.php b/app/Payment/PaymentController.php index 600f8866..5e629628 100644 --- a/app/Payment/PaymentController.php +++ b/app/Payment/PaymentController.php @@ -12,7 +12,7 @@ class PaymentController extends Controller public function store(Request $request, Member $member): RedirectResponse { $member->createPayment($request->validate([ - 'nr' => 'required|numeric', + 'nr' => 'required', 'subscription_id' => 'required|exists:subscriptions,id', 'status_id' => 'required|exists:statuses,id', ])); @@ -23,7 +23,7 @@ class PaymentController extends Controller public function update(Request $request, Member $member, Payment $payment): RedirectResponse { $payment->update($request->validate([ - 'nr' => 'required|numeric', + 'nr' => 'required', 'subscription_id' => 'required|exists:subscriptions,id', 'status_id' => 'required|exists:statuses,id', ]));