src/Settings/Settings.php
protected function updateRecord($key, $value)
    {
        $record = $this->getByKey($key);

        $record->value = $this->valueToJson($value);

        $record->save();

        return $record;
    }
protected function updateRecord($key, $value)
    {
        $record = $this->getByKey($key);

        $record->value = $this->valueToJson($value);

        $record->save();

        return $record;
    }
protected function updateRecord ( $ key , $ value ) { $ record = $ this -> getByKey ( $ key ) ; $ record -> value = $ this -> valueToJson ( $ value ) ; $ record -> save ( ) ; return $ record ; }
Update a PropertyBag record.

@param string $key
@param mixed  $value

@return \LaravelPropertyBag\Settings\PropertyBag
Update a PropertyBag record .