public function add($values)
    {
        if (! is_array($values) && ! $values instanceof BaseCollection) {
            $values = func_get_args();
        }

        // Once we have made sure our input is an array of values, we will convert
        // them into value model objects (if no model instances are given). When
        // done we will just push all values into the current collection items.
        foreach ($values as $value) {
            $this->push($this->buildValue($value));
        }

        return $this;
    }
public function add($values)
    {
        if (! is_array($values) && ! $values instanceof BaseCollection) {
            $values = func_get_args();
        }

        // Once we have made sure our input is an array of values, we will convert
        // them into value model objects (if no model instances are given). When
        // done we will just push all values into the current collection items.
        foreach ($values as $value) {
            $this->push($this->buildValue($value));
        }

        return $this;
    }
public function add ( $ values ) { if ( ! is_array ( $ values ) && ! $ values instanceof BaseCollection ) { $ values = func_get_args ( ) ; } // Once we have made sure our input is an array of values, we will convert // them into value model objects (if no model instances are given). When // done we will just push all values into the current collection items. foreach ( $ values as $ value ) { $ this -> push ( $ this -> buildValue ( $ value ) ) ; } return $ this ; }
Add new values to the value collection.

@param \Illuminate\Support\Collection|array $values

@return $this
Add new values to the value collection .