New rule for account number. #107

This commit is contained in:
James Cole 2016-02-11 06:40:06 +01:00
parent d473455680
commit a886e8087d

View File

@ -48,6 +48,7 @@ class AccountFormRequest extends Request
'iban' => 'iban',
'virtualBalance' => 'numeric',
'openingBalanceDate' => 'date',
'accountNumber' => 'between:1,255|uniqueAccountNumberForUser',
'accountRole' => 'in:' . $accountRoles,
'active' => 'boolean',
'ccType' => 'in:' . $ccPaymentTypes,