src/Console/GetWebDriver.php
protected function download($client)
    {
        $resource = base_path('vendor/bin/driver-file');

        if (is_file(base_path("vendor/bin/{$this->getFileName()}"))) {
            if (!$this->confirm(ucfirst($this->argument('driver')).' web driver file already exists. Would you still like to download it?')) {
                return false;
            }
        }

        $this->info("Downloading {$this->driver} web driver for {$this->userOS}...");

        $resource .= $this->getExtension();

        // Downloading Driver
        $client->request('get', $this->getConfig()['url'], [
            'save_to' => \GuzzleHttp\Psr7\stream_for(fopen($resource, 'w')),
        ]);

        return $resource;
    }
protected function download($client)
    {
        $resource = base_path('vendor/bin/driver-file');

        if (is_file(base_path("vendor/bin/{$this->getFileName()}"))) {
            if (!$this->confirm(ucfirst($this->argument('driver')).' web driver file already exists. Would you still like to download it?')) {
                return false;
            }
        }

        $this->info("Downloading {$this->driver} web driver for {$this->userOS}...");

        $resource .= $this->getExtension();

        // Downloading Driver
        $client->request('get', $this->getConfig()['url'], [
            'save_to' => \GuzzleHttp\Psr7\stream_for(fopen($resource, 'w')),
        ]);

        return $resource;
    }
protected function download ( $ client ) { $ resource = base_path ( 'vendor/bin/driver-file' ) ; if ( is_file ( base_path ( "vendor/bin/{$this->getFileName()}" ) ) ) { if ( ! $ this -> confirm ( ucfirst ( $ this -> argument ( 'driver' ) ) . ' web driver file already exists. Would you still like to download it?' ) ) { return false ; } } $ this -> info ( "Downloading {$this->driver} web driver for {$this->userOS}..." ) ; $ resource .= $ this -> getExtension ( ) ; // Downloading Driver $ client -> request ( 'get' , $ this -> getConfig ( ) [ 'url' ] , [ 'save_to' => \ GuzzleHttp \ Psr7 \ stream_for ( fopen ( $ resource , 'w' ) ) , ] ) ; return $ resource ; }
Downloading driver.

@param $client

@return bool|string
Downloading driver .