lib/Collection.php
public function reset($items = null)
    {
        $this->items = [];
        if ((func_get_args() > 0) && is_array($items)) {
            $this->items = $items;
        }
        return $this;
    }
public function reset($items = null)
    {
        $this->items = [];
        if ((func_get_args() > 0) && is_array($items)) {
            $this->items = $items;
        }
        return $this;
    }
public function reset ( $ items = null ) { $ this -> items = [ ] ; if ( ( func_get_args ( ) > 0 ) && is_array ( $ items ) ) { $ this -> items = $ items ; } return $ this ; }
Resets the collection with the specified array content.
@param array $items
@return Collection
Resets the collection with the specified array content .