This commit is contained in:
James Cole
2020-01-08 05:48:45 +01:00
parent 6019638388
commit 2485f74302
3 changed files with 24 additions and 23 deletions

View File

@@ -76,7 +76,7 @@ class PiggyBankFormRequest extends Request
$rules = [
'name' => $nameRule,
'account_id' => 'required|belongsToUser:accounts',
'targetamount' => 'required|numeric|more:0|max:1000000000',
'targetamount' => 'required|numeric|gte:0.01|max:1000000000',
'startdate' => 'date',
'targetdate' => 'date|nullable',
'order' => 'integer|min:1',