public function isValid($sendHeaders = true)
    {
        if (Application::getInstance()->runningInConsole()) {
            return !$this->validator->with($this->inputs)->fails();
        }

        return $this->formBuilder->isValid($sendHeaders);
    }
public function isValid($sendHeaders = true)
    {
        if (Application::getInstance()->runningInConsole()) {
            return !$this->validator->with($this->inputs)->fails();
        }

        return $this->formBuilder->isValid($sendHeaders);
    }
public function isValid ( $ sendHeaders = true ) { if ( Application :: getInstance ( ) -> runningInConsole ( ) ) { return ! $ this -> validator -> with ( $ this -> inputs ) -> fails ( ) ; } return $ this -> formBuilder -> isValid ( $ sendHeaders ) ; }
Checks if the the given inputs data are valid.

@param bool $sendHeaders
@return bool
Checks if the the given inputs data are valid .