check(); } /** * @return array */ public function rules() { $rules = [ 'code' => 'required|2faCode', ]; return $rules; } }