. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * Class NewUserFormRequest. * * @codeCoverageIgnore */ class NewUserFormRequest extends Request { /** * Verify the request. * * @return bool */ public function authorize(): bool { // Only allow logged in users return auth()->check(); } /** * 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', ]; } }