models/ContactForm.php
/**
	 * @return array the validation rules.
	 */
@return array the validation rules.
@return array the validation rules .
public function rules(){
		return [
			[['guest_name', 'guest_email', 'subject', 'content',], 'required'],
			['guest_email', 'email'],
			['verifyCode', ReCaptchaValidator2::class,
				'uncheckedMessage' => 'Please confirm that you are not a bot.'],
		];
	}
public function rules ( ) { return [ [ [ 'guest_name' , 'guest_email' , 'subject' , 'content' , ] , 'required' ] , [ 'guest_email' , 'email' ] , [ 'verifyCode' , ReCaptchaValidator2 :: class , 'uncheckedMessage' => 'Please confirm that you are not a bot.' ] , ] ; }
@return array the validation rules.
@return array the validation rules .