class RegisterUserRequest extends FormRequest { public function authorize() { return true; } public function rules() { return [ 'email' => [ 'required', 'email', 'confirmed', Rule::unique('users')->ignore(false, 'canceled'), ], ]; } public function messages() { return [ // ]; } }