app/Console/Commands/Crawl.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $apps = \App\App::all();
        foreach ($apps as $app) {
            if (! class_exists($app->crawler)) {
                throw new \InvalidArgumentException("Crawler class not exists: $app->crawler");
            }
            $crawler = new $app->crawler($app->config);
            $crawler->handle();
        }
    }
public function handle ( ) { $ apps = \ App \ App :: all ( ) ; foreach ( $ apps as $ app ) { if ( ! class_exists ( $ app -> crawler ) ) { throw new \ InvalidArgumentException ( " Crawler class not exists:  $ app -> crawler " ) ; } $ crawler = new $ app -> crawler ( $ app -> config ) ; $ crawler -> handle ( ) ; } }
Execute the console command.
Execute the console command .