fixed: nr should not be numeric
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Lang 2023-01-04 12:40:59 +01:00
parent 785f9e5689
commit 42d6e2f661
1 changed files with 2 additions and 2 deletions

View File

@ -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',
]));