This commit is contained in:
James Cole
2023-03-31 19:21:09 +02:00
parent 8ea32714f6
commit ed00d97ff9

View File

@@ -76,7 +76,7 @@ class UpdateRequest extends FormRequest
return [
'name' => 'between:1,255|uniquePiggyBankForUser:'.$piggyBank->id,
'current_amount' => ['numeric', 'gte:0', new LessThanPiggyTarget()],
'target_amount' => 'numeric|gt:0',
'target_amount' => 'numeric|gte:0',
'start_date' => 'date|nullable',
'target_date' => 'date|nullable|after:start_date',
'notes' => 'max:65000',