function ruleBetween($min, $max, $error_message = null) {
        if (!is_numeric($min)) {
            throw new \Exception('Incorrect parameter MIN in rule between');
        }
        if (!is_numeric($max)) {
            throw new \Exception('Incorrect parameter MAX in rule between');
        }

        return $this->_rule('between:' . $min . ',' . $max, $error_message);
    }
function ruleBetween($min, $max, $error_message = null) {
        if (!is_numeric($min)) {
            throw new \Exception('Incorrect parameter MIN in rule between');
        }
        if (!is_numeric($max)) {
            throw new \Exception('Incorrect parameter MAX in rule between');
        }

        return $this->_rule('between:' . $min . ',' . $max, $error_message);
    }
function ruleBetween ( $ min , $ max , $ error_message = null ) { if ( ! is_numeric ( $ min ) ) { throw new \ Exception ( 'Incorrect parameter MIN in rule between' ) ; } if ( ! is_numeric ( $ max ) ) { throw new \ Exception ( 'Incorrect parameter MAX in rule between' ) ; } return $ this -> _rule ( 'between:' . $ min . ',' . $ max , $ error_message ) ; }
The field under validation must have a size between the given min and max. Strings, numerics, and files are evaluated in the same fashion as the size rule.

@param int  $min
@param int  $max

@param null $error_message

@return ValidateBuilder
@throws \Exception
The field under validation must have a size between the given min and max . Strings numerics and files are evaluated in the same fashion as the size rule .