public function unique($recursive = false)
    {
        if ($this->getBoolable($recursive))
        {
            return new static($this->uniqueRecursive($this->items));
        }

        return new static(array_unique($this->items));
    }
public function unique($recursive = false)
    {
        if ($this->getBoolable($recursive))
        {
            return new static($this->uniqueRecursive($this->items));
        }

        return new static(array_unique($this->items));
    }
public function unique ( $ recursive = false ) { if ( $ this -> getBoolable ( $ recursive ) ) { return new static ( $ this -> uniqueRecursive ( $ this -> items ) ) ; } return new static ( array_unique ( $ this -> items ) ) ; }
Unique Container items.

@param bool|BooleanContract $recursive
@return $this
Unique Container items .