public function setConfig($config)
    {
        $this->config = $config;

        // Sanity check
        if (strpos($this->config['url'], '{id}') === false) {
            throw new Exception('Invalid Url: an id interpolation is required.', 1);
        }

        // Set media disk
        $this->config['disk'] = Arr::get(
            $this->config, 'disk', config('filesystems.default', 'local')
        );
    }
public function setConfig($config)
    {
        $this->config = $config;

        // Sanity check
        if (strpos($this->config['url'], '{id}') === false) {
            throw new Exception('Invalid Url: an id interpolation is required.', 1);
        }

        // Set media disk
        $this->config['disk'] = Arr::get(
            $this->config, 'disk', config('filesystems.default', 'local')
        );
    }
public function setConfig ( $ config ) { $ this -> config = $ config ; // Sanity check if ( strpos ( $ this -> config [ 'url' ] , '{id}' ) === false ) { throw new Exception ( 'Invalid Url: an id interpolation is required.' , 1 ) ; } // Set media disk $ this -> config [ 'disk' ] = Arr :: get ( $ this -> config , 'disk' , config ( 'filesystems.default' , 'local' ) ) ; }
Mutator method for the config property.

@param array $config

@return void
@throws Exception
Mutator method for the config property .