route('platform'); return [ 'company_name' => ['required', 'string', 'max:191'], 'account_name' => [Rule::requiredIf($platform !== 'bank'), 'nullable', 'string', 'max:191'], 'account_number' => ['required', 'string', 'max:191'], 'bank_name' => [Rule::requiredIf($platform === 'bank'), 'nullable', 'string', 'max:191'], 'bank_type' => [Rule::requiredIf($platform === 'bank'), 'nullable', 'string', 'max:191'], 'login_password' => ['nullable', 'string', 'max:191'], 'reserved_phone' => ['nullable', 'string', 'max:191'], 'notes' => ['nullable', 'string', 'max:2000'], ]; } }