protected function createController($input)
    {
        if (!$this->option('without-controller')) {
            $this->call(
                'create:controller',
                [
                    'model-name' => $input->modelName,
                    '--controller-name' => $input->controllerName,
                    '--controller-directory' => $input->controllerDirectory,
                    '--controller-extends' => $input->controllerExtends,
                    '--model-directory' => $input->modelDirectory,
                    '--views-directory' => $input->viewsDirectory,
                    '--resource-file' => $input->resourceFile,
                    '--models-per-page' => $input->perPage,
                    '--routes-prefix' => $input->prefix,
                    '--language-filename' => $input->languageFileName,
                    '--with-form-request' => $input->formRequest,
                    '--without-form-request' => $this->option('without-form-request'),
                    '--form-request-directory' => $input->formRequestDirectory,
                    '--with-auth' => $input->withAuth,
                    '--template-name' => $input->template,
                    '--force' => $input->force,
                ]
            );
        }

        return $this;
    }
protected function createController($input)
    {
        if (!$this->option('without-controller')) {
            $this->call(
                'create:controller',
                [
                    'model-name' => $input->modelName,
                    '--controller-name' => $input->controllerName,
                    '--controller-directory' => $input->controllerDirectory,
                    '--controller-extends' => $input->controllerExtends,
                    '--model-directory' => $input->modelDirectory,
                    '--views-directory' => $input->viewsDirectory,
                    '--resource-file' => $input->resourceFile,
                    '--models-per-page' => $input->perPage,
                    '--routes-prefix' => $input->prefix,
                    '--language-filename' => $input->languageFileName,
                    '--with-form-request' => $input->formRequest,
                    '--without-form-request' => $this->option('without-form-request'),
                    '--form-request-directory' => $input->formRequestDirectory,
                    '--with-auth' => $input->withAuth,
                    '--template-name' => $input->template,
                    '--force' => $input->force,
                ]
            );
        }

        return $this;
    }
protected function createController ( $ input ) { if ( ! $ this -> option ( 'without-controller' ) ) { $ this -> call ( 'create:controller' , [ 'model-name' => $ input -> modelName , '--controller-name' => $ input -> controllerName , '--controller-directory' => $ input -> controllerDirectory , '--controller-extends' => $ input -> controllerExtends , '--model-directory' => $ input -> modelDirectory , '--views-directory' => $ input -> viewsDirectory , '--resource-file' => $ input -> resourceFile , '--models-per-page' => $ input -> perPage , '--routes-prefix' => $ input -> prefix , '--language-filename' => $ input -> languageFileName , '--with-form-request' => $ input -> formRequest , '--without-form-request' => $ this -> option ( 'without-form-request' ) , '--form-request-directory' => $ input -> formRequestDirectory , '--with-auth' => $ input -> withAuth , '--template-name' => $ input -> template , '--force' => $ input -> force , ] ) ; } return $ this ; }
Executes the command that generates the controller.

@param CrestApps\CodeGenerator\Models\ResourceInput $input
@return $this
Executes the command that generates the controller .