src/Consoles/BaseCommand.php
protected function requiredTaskAndInputs()
    {
        $this->vendor  = $this->setVendor();
        $this->package = $this->setPackage();

        if (blank($this->vendor)) {
            $this->vendor = !blank($this->config->get('tie.vendor')) ? $this->config->get('tie.vendor') : snake_case(strtolower($this->ask('Vendor Name?')));
        } else {
            $vendor = explode('/', $this->vendor);
            if (isset($vendor[1])) {
                $this->package = $vendor[1];
                $this->vendor  = $vendor[0];
            }
        }

        if (blank($this->package)) {
            $this->package = strtolower($this->ask('Your Package Name?'));
        }

        $this->package = $this->package;
        $this->makeBaseDirectory();
        $this->configureNamespace();
    }
protected function requiredTaskAndInputs()
    {
        $this->vendor  = $this->setVendor();
        $this->package = $this->setPackage();

        if (blank($this->vendor)) {
            $this->vendor = !blank($this->config->get('tie.vendor')) ? $this->config->get('tie.vendor') : snake_case(strtolower($this->ask('Vendor Name?')));
        } else {
            $vendor = explode('/', $this->vendor);
            if (isset($vendor[1])) {
                $this->package = $vendor[1];
                $this->vendor  = $vendor[0];
            }
        }

        if (blank($this->package)) {
            $this->package = strtolower($this->ask('Your Package Name?'));
        }

        $this->package = $this->package;
        $this->makeBaseDirectory();
        $this->configureNamespace();
    }
protected function requiredTaskAndInputs ( ) { $ this -> vendor = $ this -> setVendor ( ) ; $ this -> package = $ this -> setPackage ( ) ; if ( blank ( $ this -> vendor ) ) { $ this -> vendor = ! blank ( $ this -> config -> get ( 'tie.vendor' ) ) ? $ this -> config -> get ( 'tie.vendor' ) : snake_case ( strtolower ( $ this -> ask ( 'Vendor Name?' ) ) ) ; } else { $ vendor = explode ( '/' , $ this -> vendor ) ; if ( isset ( $ vendor [ 1 ] ) ) { $ this -> package = $ vendor [ 1 ] ; $ this -> vendor = $ vendor [ 0 ] ; } } if ( blank ( $ this -> package ) ) { $ this -> package = strtolower ( $ this -> ask ( 'Your Package Name?' ) ) ; } $ this -> package = $ this -> package ; $ this -> makeBaseDirectory ( ) ; $ this -> configureNamespace ( ) ; }
Modify or Getting inputs
Modify or Getting inputs