|string> */ public function rules(): array { return [ 'amount' => ['required', 'integer', 'min:1', 'max:1000000'], ]; } /** * Get custom messages for validator errors. * * @return array */ public function messages(): array { return [ 'amount.required' => 'You must enter an amount to withdraw.', 'amount.integer' => 'The amount must be a whole number.', 'amount.min' => 'The minimum withdrawal amount is :min.', 'amount.max' => 'The maximum withdrawal amount is :max.', ]; } }