protected function getCommandInput()
    {
        $modelName = trim($this->argument('model-name'));
        $cName = trim($this->option('controller-name'));
        $controllerName = $cName ? str_finish($cName, Config::getControllerNamePostFix()) : Helpers::makeControllerName($modelName);
        $viewDirectory = $this->option('views-directory');
        $prefix = ($this->option('routes-prefix') == 'default-form') ? Helpers::makeRouteGroup($modelName) : $this->option('routes-prefix');
        $perPage = intval($this->option('models-per-page'));
        $resourceFile = trim($this->option('resource-file')) ?: Helpers::makeJsonFileName($modelName);
        $langFile = $this->option('language-filename') ?: Helpers::makeLocaleGroup($modelName);
        $withFormRequest = $this->option('with-form-request');
        $force = $this->option('force');
        $modelDirectory = $this->option('model-directory');
        $controllerDirectory = trim($this->option('controller-directory'));
        $formRequestName = Helpers::makeFormRequestName($modelName);
        $template = $this->getTemplateName();
        $formRequestDirectory = trim($this->option('form-request-directory'));
        $extends = $this->generatorOption('controller-extends');
        $withAuth = $this->option('with-auth');

        return (object) compact(
            'formRequestDirectory',
            'viewDirectory',
            'modelName',
            'prefix',
            'perPage',
            'modelDirectory',
            'langFile',
            'withFormRequest',
            'formRequestName',
            'force',
            'resourceFile',
            'template',
            'controllerName',
            'extends',
            'withAuth',
            'controllerDirectory'
        );
    }
protected function getCommandInput()
    {
        $modelName = trim($this->argument('model-name'));
        $cName = trim($this->option('controller-name'));
        $controllerName = $cName ? str_finish($cName, Config::getControllerNamePostFix()) : Helpers::makeControllerName($modelName);
        $viewDirectory = $this->option('views-directory');
        $prefix = ($this->option('routes-prefix') == 'default-form') ? Helpers::makeRouteGroup($modelName) : $this->option('routes-prefix');
        $perPage = intval($this->option('models-per-page'));
        $resourceFile = trim($this->option('resource-file')) ?: Helpers::makeJsonFileName($modelName);
        $langFile = $this->option('language-filename') ?: Helpers::makeLocaleGroup($modelName);
        $withFormRequest = $this->option('with-form-request');
        $force = $this->option('force');
        $modelDirectory = $this->option('model-directory');
        $controllerDirectory = trim($this->option('controller-directory'));
        $formRequestName = Helpers::makeFormRequestName($modelName);
        $template = $this->getTemplateName();
        $formRequestDirectory = trim($this->option('form-request-directory'));
        $extends = $this->generatorOption('controller-extends');
        $withAuth = $this->option('with-auth');

        return (object) compact(
            'formRequestDirectory',
            'viewDirectory',
            'modelName',
            'prefix',
            'perPage',
            'modelDirectory',
            'langFile',
            'withFormRequest',
            'formRequestName',
            'force',
            'resourceFile',
            'template',
            'controllerName',
            'extends',
            'withAuth',
            'controllerDirectory'
        );
    }
protected function getCommandInput ( ) { $ modelName = trim ( $ this -> argument ( 'model-name' ) ) ; $ cName = trim ( $ this -> option ( 'controller-name' ) ) ; $ controllerName = $ cName ? str_finish ( $ cName , Config :: getControllerNamePostFix ( ) ) : Helpers :: makeControllerName ( $ modelName ) ; $ viewDirectory = $ this -> option ( 'views-directory' ) ; $ prefix = ( $ this -> option ( 'routes-prefix' ) == 'default-form' ) ? Helpers :: makeRouteGroup ( $ modelName ) : $ this -> option ( 'routes-prefix' ) ; $ perPage = intval ( $ this -> option ( 'models-per-page' ) ) ; $ resourceFile = trim ( $ this -> option ( 'resource-file' ) ) ? : Helpers :: makeJsonFileName ( $ modelName ) ; $ langFile = $ this -> option ( 'language-filename' ) ? : Helpers :: makeLocaleGroup ( $ modelName ) ; $ withFormRequest = $ this -> option ( 'with-form-request' ) ; $ force = $ this -> option ( 'force' ) ; $ modelDirectory = $ this -> option ( 'model-directory' ) ; $ controllerDirectory = trim ( $ this -> option ( 'controller-directory' ) ) ; $ formRequestName = Helpers :: makeFormRequestName ( $ modelName ) ; $ template = $ this -> getTemplateName ( ) ; $ formRequestDirectory = trim ( $ this -> option ( 'form-request-directory' ) ) ; $ extends = $ this -> generatorOption ( 'controller-extends' ) ; $ withAuth = $ this -> option ( 'with-auth' ) ; return ( object ) compact ( 'formRequestDirectory' , 'viewDirectory' , 'modelName' , 'prefix' , 'perPage' , 'modelDirectory' , 'langFile' , 'withFormRequest' , 'formRequestName' , 'force' , 'resourceFile' , 'template' , 'controllerName' , 'extends' , 'withAuth' , 'controllerDirectory' ) ; }
Gets a clean command-line arguments and options.

@return object
Gets a clean command - line arguments and options .