$nameRule, 'openingBalance' => 'numeric', 'openingBalanceDate' => 'date', 'accountRole' => 'in:' . $accountRoles, 'active' => 'boolean', 'balance_currency_id' => 'exists:transaction_currencies,id', 'what' => 'in:' . $types ]; } }