'required|unique:users,email,'.$this->get('id').',id|email', 'phone' => 'required|numeric|regex:/^1[34578][0-9]{9}$/|unique:users,phone,'.$this->get('id').',id', 'username' => 'required|min:4|max:14|unique:users,username,'.$this->get('id').',id', ]; if ($this->get('password') || $this->get('password_confirmation')){ $reture['password'] = 'required|confirmed|min:6|max:14'; } return $reture; } }