public function download($url, $directory)
    {
        coollect((array) $url)->each(function ($url) use ($directory) {
            $filename = basename($url);

            $destination = $this->toDir("{$directory}/{$filename}");

            $this->message("Downloading to {$destination}");

            $this->mkDir($directory);

            $this->downloadFile($url, $destination);
        });
    }
public function download($url, $directory)
    {
        coollect((array) $url)->each(function ($url) use ($directory) {
            $filename = basename($url);

            $destination = $this->toDir("{$directory}/{$filename}");

            $this->message("Downloading to {$destination}");

            $this->mkDir($directory);

            $this->downloadFile($url, $destination);
        });
    }
public function download ( $ url , $ directory ) { coollect ( ( array ) $ url ) -> each ( function ( $ url ) use ( $ directory ) { $ filename = basename ( $ url ) ; $ destination = $ this -> toDir ( "{$directory}/{$filename}" ) ; $ this -> message ( "Downloading to {$destination}" ) ; $ this -> mkDir ( $ directory ) ; $ this -> downloadFile ( $ url , $ destination ) ; } ) ; }
Download one or more files.

@param $url
@param $directory
Download one or more files .