Various code changes.

This commit is contained in:
James Cole
2024-01-01 08:17:15 +01:00
parent fdcd31652a
commit 5664695a92
7 changed files with 63 additions and 24 deletions

View File

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