src/Prettus/Validator/AbstractValidator.php
public function passesOrFail($action = null)
    {
        if(  !$this->passes($action) ){
            throw new ValidatorException( $this->errorsBag() );
        }

        return true;
    }
public function passesOrFail($action = null)
    {
        if(  !$this->passes($action) ){
            throw new ValidatorException( $this->errorsBag() );
        }

        return true;
    }
public function passesOrFail ( $ action = null ) { if ( ! $ this -> passes ( $ action ) ) { throw new ValidatorException ( $ this -> errorsBag ( ) ) ; } return true ; }
Pass the data and the rules to the validator or throws ValidatorException

@throws ValidatorException
@param string $action
@return boolean
Pass the data and the rules to the validator or throws ValidatorException