public function set($key, $value, $package = null)
    {
        if ( ! is_null($package)) {
            $this->setForPackage($package, $key, $value);
            return $this;
        }
        $mainConfiguration = $this->mainConfiguration;
        Arr::set($mainConfiguration, $key, $value);
        return $this;
    }
public function set($key, $value, $package = null)
    {
        if ( ! is_null($package)) {
            $this->setForPackage($package, $key, $value);
            return $this;
        }
        $mainConfiguration = $this->mainConfiguration;
        Arr::set($mainConfiguration, $key, $value);
        return $this;
    }
public function set ( $ key , $ value , $ package = null ) { if ( ! is_null ( $ package ) ) { $ this -> setForPackage ( $ package , $ key , $ value ) ; return $ this ; } $ mainConfiguration = $ this -> mainConfiguration ; Arr :: set ( $ mainConfiguration , $ key , $ value ) ; return $ this ; }
Store given value under given key

@param string $key Array key with dot notation
@param mixed $value Value to store
@param string|null $package If provided, return value for given package
@return $this
Store given value under given key