From a886e8087d18697e41c57bf08f420fd70abb1440 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 11 Feb 2016 06:40:06 +0100 Subject: [PATCH] New rule for account number. #107 --- app/Http/Requests/AccountFormRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Requests/AccountFormRequest.php b/app/Http/Requests/AccountFormRequest.php index 12b5400d18..5642e8f475 100644 --- a/app/Http/Requests/AccountFormRequest.php +++ b/app/Http/Requests/AccountFormRequest.php @@ -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,