'required|string|regex:/^otpauth:\/\/[h,t]otp\//i', 'custom_otp' => 'string|in:steamtotp', ]; } /** * Prepare the data for validation. * * @codeCoverageIgnore * * @return void */ protected function prepareForValidation() { $this->merge([ 'custom_otp' => strtolower($this->custom_otp), ]); } }