app/Console/Commands/CreateResourceApi.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        if (!$this->createOptionCommand()) {
            $this->error('Error!!!');
            return;
        }
        $infor_option = "- Route: $this->route_name \n- Version: $this->version \n- Controller: $this->controller \n- Methods: $this->method \n";
        $this->info($infor_option);
        if ($this->confirm('Continue create resource?')) {
            if ($this->createResource()) {
            } else {
                $this->error('Error!!!');
            }
        }
        $this->info('Finish!!!');
        $this->warn('GoodBye!!!');
    }
public function handle ( ) { if ( ! $ this -> createOptionCommand ( ) ) { $ this -> error ( 'Error!!!' ) ; return ; } $ infor_option = " - Route:  $ this -> route_name \n - Version:  $ this -> version \n - Controller:  $ this -> controller \n - Methods:  $ this -> method \n " ; $ this -> info ( $ infor_option ) ; if ( $ this -> confirm ( 'Continue create resource?' ) ) { if ( $ this -> createResource ( ) ) { } else { $ this -> error ( 'Error!!!' ) ; } } $ this -> info ( 'Finish!!!' ) ; $ this -> warn ( 'GoodBye!!!' ) ; }
Execute the console command.
Execute the console command .
//