public function set($key, $value = null)
    {
        if (!$this->checkExtraColumns()) {
            return;
        }

        $this->load();
        $this->unsaved = true;

        if (is_array($key)) {
            foreach ($key as $k => $v) {
                Arr::set($this->data, $k, $v);
            }
        } else {
            Arr::set($this->data, $key, $value);
        }
    }
public function set($key, $value = null)
    {
        if (!$this->checkExtraColumns()) {
            return;
        }

        $this->load();
        $this->unsaved = true;

        if (is_array($key)) {
            foreach ($key as $k => $v) {
                Arr::set($this->data, $k, $v);
            }
        } else {
            Arr::set($this->data, $key, $value);
        }
    }
public function set ( $ key , $ value = null ) { if ( ! $ this -> checkExtraColumns ( ) ) { return ; } $ this -> load ( ) ; $ this -> unsaved = true ; if ( is_array ( $ key ) ) { foreach ( $ key as $ k => $ v ) { Arr :: set ( $ this -> data , $ k , $ v ) ; } } else { Arr :: set ( $ this -> data , $ key , $ value ) ; } }
Set a specific key to a value in the settings data.

@param string|array $key   Key string or associative array of key => value
@param mixed        $value Optional only if the first argument is an array
Set a specific key to a value in the settings data .