src/Support/Concerns/DataContainer.php
public function set(string $key, $value = null)
    {
        return Arr::set($this->items, $key, \value($value));
    }
public function set(string $key, $value = null)
    {
        return Arr::set($this->items, $key, \value($value));
    }
public function set ( string $ key , $ value = null ) { return Arr :: set ( $ this -> items , $ key , \ value ( $ value ) ) ; }
Set a item value.

@param  string  $key
@param  mixed   $value

@return mixed
Set a item value .