app/Console/Commands/SpiderNovelCommand.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $this->info("start...");
        $res = $this->objClient->request('GET', 'https://api.github.com/repos/guzzle/guzzle');
        echo $res->getStatusCode();
        echo $res->getHeaderLine('content-type');
        echo $res->getBody();
    }
public function handle ( ) { $ this -> info ( " start... " ) ; $ res = $ this -> objClient -> request ( 'GET' , 'https://api.github.com/repos/guzzle/guzzle' ) ; echo $ res -> getStatusCode ( ) ; echo $ res -> getHeaderLine ( 'content-type' ) ; echo $ res -> getBody ( ) ; }
Execute the console command.
Execute the console command .