public function downloadDataFiles()
    {
        $this->config->get('downloadable')->each(function ($urls, $path) {
            if (! file_exists($destination = $this->dataDir("third-party/$path"))) {
                coollect($urls)->each(function ($url) use ($path, $destination) {
                    $this->download($url, $destination);

                    $file = basename($url);

                    $this->unzip("$destination/$file", 'package');
                });
            }
        });
    }
public function downloadDataFiles()
    {
        $this->config->get('downloadable')->each(function ($urls, $path) {
            if (! file_exists($destination = $this->dataDir("third-party/$path"))) {
                coollect($urls)->each(function ($url) use ($path, $destination) {
                    $this->download($url, $destination);

                    $file = basename($url);

                    $this->unzip("$destination/$file", 'package');
                });
            }
        });
    }
public function downloadDataFiles ( ) { $ this -> config -> get ( 'downloadable' ) -> each ( function ( $ urls , $ path ) { if ( ! file_exists ( $ destination = $ this -> dataDir ( "third-party/$path" ) ) ) { coollect ( $ urls ) -> each ( function ( $ url ) use ( $ path , $ destination ) { $ this -> download ( $ url , $ destination ) ; $ file = basename ( $ url ) ; $ this -> unzip ( "$destination/$file" , 'package' ) ; } ) ; } } ) ; }
Download files.
Download files .