src/Arr.php
public function set($key, $value = null)
    {
        DotArr::set($this->data, $key, $value);
    }
public function set($key, $value = null)
    {
        DotArr::set($this->data, $key, $value);
    }
public function set ( $ key , $ value = null ) { DotArr :: set ( $ this -> data , $ key , $ value ) ; }
Sets a value to the dot-notated internal array.

@param int|string|array $key   The key of the item to be set or an array of key=>value pairs.
@param mixed            $value The value to be set to the item.

@see DotArr::set
Sets a value to the dot - notated internal array .