src/Models/Repository/ConfigurationRepository.php
public function setValueByKey($key, $value)
    {
        $model = Configuration::whereConfigurationKey($key)->first();

        if (null === $model) {
            return null;
        }
        $model->update(['configuration_value' => $value]);

        return $model;
    }
public function setValueByKey($key, $value)
    {
        $model = Configuration::whereConfigurationKey($key)->first();

        if (null === $model) {
            return null;
        }
        $model->update(['configuration_value' => $value]);

        return $model;
    }
public function setValueByKey ( $ key , $ value ) { $ model = Configuration :: whereConfigurationKey ( $ key ) -> first ( ) ; if ( null === $ model ) { return null ; } $ model -> update ( [ 'configuration_value' => $ value ] ) ; return $ model ; }
Set an Configuration value  by  given configuration Key

@param string $key
@return string $value
Set an Configuration value by given configuration Key