This commit is contained in:
James Cole 2023-03-31 19:21:09 +02:00
parent 8ea32714f6
commit ed00d97ff9
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

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