Fix limits

This commit is contained in:
James Cole
2024-01-01 07:24:17 +01:00
parent e5397b6659
commit fdcd31652a
5 changed files with 10 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ class PiggyBankStoreRequest extends FormRequest
return [
'name' => 'required|between:1,255|uniquePiggyBankForUser',
'account_id' => 'required|belongsToUser:accounts',
'targetamount' => 'nullable|numeric|max:1000000000',
'targetamount' => 'nullable|numeric|max:1000000000|min:-1000000000',
'startdate' => 'date',
'targetdate' => 'date|nullable',
'order' => 'integer|min:1',