app/Console/Commands/SynchronizationLocation.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $this->info("Starting update location...");
        $type = $this->argument("type");
        if($type=="all"){
            $this->mapLocation();
        }else if($type=="test"){
            $id = $this->argument("id_location");
            if($id!=null){
                $this->mapLocation($id);
            }else{
                $this->error("Not found id_location!!");
                return;
            }
        }else if($type=="test_keyword"){
            $key = $this->argument("id_location");
           $this->testKeyword($key);
        }
        $this->info("Finish!!!");
    }
public function handle ( ) { $ this -> info ( " Starting update location... " ) ; $ type = $ this -> argument ( " type " ) ; if ( $ type == " all " ) { $ this -> mapLocation ( ) ; } else if ( $ type == " test " ) { $ id = $ this -> argument ( " id_location " ) ; if ( $ id != null ) { $ this -> mapLocation ( $ id ) ; } else { $ this -> error ( " Not found id_location!! " ) ; return ; } } else if ( $ type == " test_keyword " ) { $ key = $ this -> argument ( " id_location " ) ; $ this -> testKeyword ( $ key ) ; } $ this -> info ( " Finish!!! " ) ; }
Execute the console command.
Execute the console command .
//