function addPath($path, $prepend = false)
    {
        $this->write(tap($this->read(), function (&$config) use ($path, $prepend) {
            $method = $prepend ? 'prepend' : 'push';

            $config['paths'] = collect($config['paths'])->{$method}($path)->unique()->all();
        }));
    }
function addPath($path, $prepend = false)
    {
        $this->write(tap($this->read(), function (&$config) use ($path, $prepend) {
            $method = $prepend ? 'prepend' : 'push';

            $config['paths'] = collect($config['paths'])->{$method}($path)->unique()->all();
        }));
    }
function addPath ( $ path , $ prepend = false ) { $ this -> write ( tap ( $ this -> read ( ) , function ( & $ config ) use ( $ path , $ prepend ) { $ method = $ prepend ? 'prepend' : 'push' ; $ config [ 'paths' ] = collect ( $ config [ 'paths' ] ) -> { $ method } ( $ path ) -> unique ( ) -> all ( ) ; } ) ) ; }
Add the given path to the configuration.

@param  string  $path
@param  bool  $prepend
@return void
Add the given path to the configuration .