public function offsetSet($key, $value): self
    {
        $this->data = Arr::set($this->data, $key, $value);

        return $this;
    }
public function offsetSet($key, $value): self
    {
        $this->data = Arr::set($this->data, $key, $value);

        return $this;
    }
public function offsetSet ( $ key , $ value ) : self { $ this -> data = Arr :: set ( $ this -> data , $ key , $ value ) ; return $ this ; }
Set nested array values based on a separated key.

@param string $key
@param mixed  $value

@return $this
Set nested array values based on a separated key .