src/Core/Console/ModelMakeCommand.php
protected function createController()
    {
        $controller = Str::studly(class_basename($this->argument('name')));
        $modelName = $this->qualifyClass($this->getNameInput());

        $this->call('make:controller', [
            'name' => "{$controller}Controller",
            '--model' => $this->option('resource') ? $modelName : null
        ]);
    }
protected function createController()
    {
        $controller = Str::studly(class_basename($this->argument('name')));
        $modelName = $this->qualifyClass($this->getNameInput());

        $this->call('make:controller', [
            'name' => "{$controller}Controller",
            '--model' => $this->option('resource') ? $modelName : null
        ]);
    }
protected function createController ( ) { $ controller = Str :: studly ( class_basename ( $ this -> argument ( 'name' ) ) ) ; $ modelName = $ this -> qualifyClass ( $ this -> getNameInput ( ) ) ; $ this -> call ( 'make:controller' , [ 'name' => "{$controller}Controller" , '--model' => $ this -> option ( 'resource' ) ? $ modelName : null ] ) ; }
Create a controller for the model.
Create a controller for the model .