src/Setting.php
public function set($key, $value)
    {
        $setting = SettingModel::create(
            [
                'key' => $key,
                'value' => $value,
            ]
        );

        return $setting ? $value : false;
    }
public function set($key, $value)
    {
        $setting = SettingModel::create(
            [
                'key' => $key,
                'value' => $value,
            ]
        );

        return $setting ? $value : false;
    }
public function set ( $ key , $ value ) { $ setting = SettingModel :: create ( [ 'key' => $ key , 'value' => $ value , ] ) ; return $ setting ? $ value : false ; }
Set value against a key.

@param string $key

@param mixed $value

@return mixed
Set value against a key .