app/Console/Commands/AutoupdateXml.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
		if(count(Tempcompany::all()) > 0){
           (new CronController)->autonew(); 
        }else{
            \Log::info('all companies  updated. This work cron');
        }
    }
public function handle ( ) { if ( count ( Tempcompany :: all ( ) ) > 0 ) { ( new CronController ) -> autonew ( ) ; } else { \ Log :: info ( 'all companies  updated. This work cron' ) ; } }
Execute the console command.
Execute the console command .
//try { //(new CronController)->autonew(); //} catch (\Exception $e) { //dd($e); //};