Set some max numbers.

This commit is contained in:
James Cole
2019-09-09 18:55:23 +02:00
parent 5ae91845c1
commit a0780e434e
2 changed files with 3 additions and 3 deletions

View File

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