private function makeArrayQueryBetween(Builder $query, stdClass $rule, $operator, array $value, $condition)
    {
        if (count($value) !== 2) {
            throw new QBParseException("{$rule->field} should be an array with only two items.");
        }

        if ( $operator == 'NOT BETWEEN' ) {
            return $query->whereNotBetween( $rule->field, $value, $condition );
        }

        return $query->whereBetween($rule->field, $value, $condition);
    }
private function makeArrayQueryBetween(Builder $query, stdClass $rule, $operator, array $value, $condition)
    {
        if (count($value) !== 2) {
            throw new QBParseException("{$rule->field} should be an array with only two items.");
        }

        if ( $operator == 'NOT BETWEEN' ) {
            return $query->whereNotBetween( $rule->field, $value, $condition );
        }

        return $query->whereBetween($rule->field, $value, $condition);
    }
private function makeArrayQueryBetween ( Builder $ query , stdClass $ rule , $ operator , array $ value , $ condition ) { if ( count ( $ value ) !== 2 ) { throw new QBParseException ( "{$rule->field} should be an array with only two items." ) ; } if ( $ operator == 'NOT BETWEEN' ) { return $ query -> whereNotBetween ( $ rule -> field , $ value , $ condition ) ; } return $ query -> whereBetween ( $ rule -> field , $ value , $ condition ) ; }
makeArrayQueryBetween, when the query is a BETWEEN or NOT BETWEEN...

@see makeQueryWhenArray
@param Builder $query
@param stdClass $rule
@param string operator the SQL operator used. [BETWEEN|NOT BETWEEN]
@param array $value
@param string $condition
@throws QBParseException when more then two items given for the between
@return Builder
makeArrayQueryBetween when the query is a BETWEEN or NOT BETWEEN ...