Adds a setting key and value if the setting isn't set.

@access public
@param string $path
@param string $value
517229
public function addSettingIfNotSet($path, $value)
    {
        if ($this->hasSetting($path)) {
            return;
        }

        $this->setSetting($path, $value);
    }
1120481
public function set($path, $value)
  {
    $old = null;
    if ( $nodes = explode('.', $path) ){
      $node = $this->data;

      for($i=0, $n=count($nodes)-1; $i<$n; $i++){
        if ( !isset($node->{$nodes[$i]}) && ($i != $n) ){
          $node->{$nodes[$i]} = new \stdClass;
        }
        
        $node = $node->{$nodes[$i]};
      }
      
      if ( isset($node->{$nodes[$i]}) ){
        $old = $node->{$nodes[$i]};
      }
      $node->{$nodes[$i]} = $value;
    }
    return $old;
  }
975669
public function pushIn($key, $path, $value)
    {
        return $this->setIn($key, $path, $value, true);
    }
259558
public static function addPath($path)
    {
        if ( ! isset(self::$_configPaths[$path]))
        {
            self::$_configPaths[$path] = $path;
        }
    }
52878
static public function set($key, $value) {
        $config = &self::$_config;
        
        Utils::arraySet($config, $key, $value);
    }
479113
public function store($path, $value)
    {
        $key = $this->getCacheKey($path);

        $this->data[$key] = $value;

        return $this;
    }
306001
public function set($key, $value = null)
    {
        if (is_array($key)) {
            $key = $this->flattenArray($key);
            $this->settings = array_merge($this->settings, $key);
        } else {
            $this->settings[$key] = $value;
        }
    }
35339
public function offsetSet($path, $value)
	{
		if (is_null($path)) {
			$this->items[] = $value;
		} else {
			Arr::set($this->items, $this->keyFor($path), $value);
		}
	}
568977
public static function set($path,$key,$value=null) {

		$data = CoreManager::all($path);

		if(CoreManager::has($data,$key)) {

			Artisan::call('config:cache');

			$current_key_value = $key.'='.env($key);

			$value = str_replace(' ' , '_', $value);

			$new_key_value = $key.'='.$value;

			$result = file_put_contents($path, str_replace($current_key_value,$new_key_value,file_get_contents($path)));

			Artisan::call('config:cache');

			return true;
		
		}

		return false;
	
	}
466588
public function set($key, $value, $expire = 3600, $path = '/')
    {
        if ($expire == false) {
            setcookie($key, serialize($value), false, $path);
        } else {
            setcookie($key, serialize($value), time() + $expire, $path);
        }
    }
1021596
public function insert( $key_path, $value ) {
		try {
			$this->update( $key_path, $value );
		} catch ( NonExistentKeyException $exception ) {
			$exception->get_traverser()->create_key();
			$this->insert( $key_path, $value );
		}
	}
733464
public function settingsSet($key, $value)
    {
        $allSettings = $this->settingsGetAll();
        $allSettings[$key] = $value;
        $this->settingsSetAll($allSettings);
    }
927037
public function setPath($path, $value = null, $method = null)
    {
        $this->paths[$path] = [];

        if (! is_null($value)) {
            $this->paths[$path]['path'] = $value;
        }

        if (! is_null($method)) {
            $this->paths[$path]['method'] = $method;
        }
    }
845921
public function set($path, $value)
    {
        $parts = explode('.', $path);
        switch (count($parts)) {
            case 2:
                $this->_data[$parts[0]][$parts[1]] = $value;
                break;
            case 1:
                $this->_data[$parts[0]] = $value;
                break;
            case 0:
                throw new RuntimeException('Path was empty.');
            default:
                throw new RuntimeException('Too many parts in path.');
        }
    }
1147301
public function setValue($key, $value)
    {
        $this->loadSettingsIfNotDoneYet();

        $this->isDirty = true;
        $this->settingsValues[$key] = $value;
    }
1206625
public function hasSetting($path)
    {
        $value = $this->resolvePath($path);
    
        if ($value === null) {
            return false;
        }
        
        return true;
    }
1264403
public function set($path, $value)
    {
        $configValue = $this->getRepository()->findOneByPath($path);
        if ($configValue) {
            $configValue->setValue($value);
            $this->update($configValue);
        }
    }