public function whereBetween($key, $values)
    {
        return $this->where($key, '>=', reset($values))->where($key, '<=', end($values));
    }
public function whereBetween($key, $values)
    {
        return $this->where($key, '>=', reset($values))->where($key, '<=', end($values));
    }
public function whereBetween ( $ key , $ values ) { return $ this -> where ( $ key , '>=' , reset ( $ values ) ) -> where ( $ key , '<=' , end ( $ values ) ) ; }
Filter items such that the value of the given key is between the given values.

@param  string  $key
@param  array  $values
@return static
Filter items such that the value of the given key is between the given values .