public function where($condition, $preserveKeys = true)
    {
        $condition = $this->retrieveValue($condition);

        if (empty($condition)) return $this;

        return new static($this->whereCondition($condition, $this->getBoolable($preserveKeys)));
    }
public function where($condition, $preserveKeys = true)
    {
        $condition = $this->retrieveValue($condition);

        if (empty($condition)) return $this;

        return new static($this->whereCondition($condition, $this->getBoolable($preserveKeys)));
    }
public function where ( $ condition , $ preserveKeys = true ) { $ condition = $ this -> retrieveValue ( $ condition ) ; if ( empty ( $ condition ) ) return $ this ; return new static ( $ this -> whereCondition ( $ condition , $ this -> getBoolable ( $ preserveKeys ) ) ) ; }
Find all items by key or key value pairs.
You can specify second parameter to preserve keys reset.

@param mixed $condition
@param bool|BooleanContract $preserveKeys
@throws ContainerException
@throws EmptyContainerException
@return static
Find all items by key or key value pairs . You can specify second parameter to preserve keys reset .