Create a new key with value

@param string $key
@param string $value

@return boolean
324459
public static function create($path,$key , $value=null) {

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

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

			$contents = file_get_contents($path);

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

	        $data = "\n".$key."=".$value;

	        $result = file_put_contents($path, $data , FILE_APPEND | LOCK_EX);

	        return true;

			Artisan::call('config:cache');
		
		} else {
			return false;
		}

	}
418009
public function put($key, $value = '')
    {
        Arr::set($this->attributes, $key, $value);

        return $this;
    }
24681
public function set($key, $value)
    {
        if (is_bool($value)) {
            $value = $value ? 'true' : 'false';
        }

        return parent::set($key, $value);
    }
318614
public function set($key, $value)
    {
        if (!$this->db->isInitialized() || empty($key) || !isset($value)) {
            return false;
        }

        $this->reset($key);

        $serialized = 0;

        if (is_array($value)) {
            $value = serialize($value);
            $serialized = 1;
        }

        $values = array(
            'id' => $key,
            'value' => $value,
            'created' => GC_TIME,
            'serialized' => $serialized
        );

        $this->db->insert('settings', $values);
        return true;
    }
934175
public static function add($key, $value)
    {
        if (!isset(self::$config[$key]) || !is_array(self::$config[$key])) {
            return false;
        }
        array_push(self::$config[$key], $value);
        return true;
    }
1219778
public function with($key, $value = null)
    {
        $values = (is_array($key) || $key instanceof Traversable) ? $key : [$key => $value];

        return $this->copy()->update($values);
    }
707265
public function set($key, $value)
    {
        $config = &$this->config;

        foreach (explode('.', $key) as $k) {
            $config = &$config[$k];
        }

        $config = $value;

        return true;
    }
483008
public function add($key, $value) {
        $key = $this->formatKey($key);
        $headers = $this->get($key);

        $headers[] = $value;

        array_set($this->headers, $key, $headers);
    }
1324932
public function set($key, $value) : HashMap
    {
        $values = $this->_set($key, $value, false);
        $this->setValues($values);
        return $this;
    }
1029495
public function set($key, $value = null)
    {
        if ($value === null) {
            $this->parameters = $key + $this->parameters;
        } else {
            $this->parameters[$key] = $value;
        }

        return $this;
    }
470713
public function set( $key, $value ) {
		$key = $this->addKeyprefixIfNeeded( $key );
		$this->params[$key] = $value;
		return $this;
	}
1253369
public function increment($key, $value = 1)
    {
        $cached = $this->get($key);

        if (is_numeric($cached)) {
            $cached += $value;
            $this->set($key, $cached);
			return $cached;
		}

        return false;
    }
340551
public function set($key, $value)
        {
            $this->values[$this->normalizeKey($key)] = $value;

            return $this;
        }
905609
public function set( $key, $value )
	{
		if( $this->has( $key ) )																	//  check if pair is already existing
		{
			if( is_null( $value ) )																	//  given value is NULL, which means: remove this pair
				return $this->remove( $key );														//  remove pair and return result of sub operation
			else if( $this->get( $key ) === $value )												//  value of pair did not change
				return FALSE;																		//  quit and return negative because no change has taken place
		}
		$this->pairs[( !$this->caseSensitive ? strtolower( $key ) : $key )]		= $value;			//  set new value of current pair, case insensitive if needed
		return TRUE;																				//  indicate success
	}
618983
public function withValue($key, $value)
    {
        $copy = $this->values;
        $copy[$key] = $value;
        return new Context($copy);
    }
1016286
public function set($key, $value)
    {
        $this->load();
        $oldValue = isset($this->values[$key]) ? $this->values[$key] : null;
        $this->values[$key] = $value;
        return $oldValue;
    }
466509
function updateKey($key, $value)
    {
        return tap($this->read(), function (&$config) use ($key, $value) {
            $config[$key] = $value;

            $this->write($config);
        });
    }