public function validator($factory) { return $factory->make($this->sanitizeInput(), $this->container->call([$this, 'rules']), $this->messages()); }