function updateKey($key, $value)
    {
        return tap($this->read(), function (&$config) use ($key, $value) {
            $config[$key] = $value;

            $this->write($config);
        });
    }
function updateKey($key, $value)
    {
        return tap($this->read(), function (&$config) use ($key, $value) {
            $config[$key] = $value;

            $this->write($config);
        });
    }
function updateKey ( $ key , $ value ) { return tap ( $ this -> read ( ) , function ( & $ config ) use ( $ key , $ value ) { $ config [ $ key ] = $ value ; $ this -> write ( $ config ) ; } ) ; }
Update a specific key in the configuration file.

@param  string  $key
@param  mixed  $value
@return array
Update a specific key in the configuration file .