. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; use FireflyIII\Support\Request\ChecksLogin; use FireflyIII\Support\Request\ConvertsDataTypes; use Illuminate\Foundation\Http\FormRequest; /** * Class NewUserFormRequest. * */ class NewUserFormRequest extends FormRequest { use ConvertsDataTypes; use ChecksLogin; /** * Rules for this request. * * @return array */ public function rules(): array { // fixed return [ 'bank_name' => 'required|between:1,200', 'bank_balance' => 'required|numeric|max:1000000000', 'savings_balance' => 'numeric|max:1000000000', 'credit_card_limit' => 'numeric|max:1000000000', 'amount_currency_id_bank_balance' => 'exists:transaction_currencies,id', 'amount_currency_id_savings_balance' => 'exists:transaction_currencies,id', 'amount_currency_id_credit_card_limit' => 'exists:transaction_currencies,id', ]; } }