src/Commands/ControllerMakeCommand.php
private function getStubName()
    {
        if ($this->option('plain') === true) {
            $stub = '/controller-plain.stub';
        } elseif ($this->option('api') === true) {
            $stub = '/controller-api.stub';
        } else {
            $stub = '/controller.stub';
        }

        return $stub;
    }
private function getStubName()
    {
        if ($this->option('plain') === true) {
            $stub = '/controller-plain.stub';
        } elseif ($this->option('api') === true) {
            $stub = '/controller-api.stub';
        } else {
            $stub = '/controller.stub';
        }

        return $stub;
    }
private function getStubName ( ) { if ( $ this -> option ( 'plain' ) === true ) { $ stub = '/controller-plain.stub' ; } elseif ( $ this -> option ( 'api' ) === true ) { $ stub = '/controller-api.stub' ; } else { $ stub = '/controller.stub' ; } return $ stub ; }
Get the stub file name based on the options
@return string
Get the stub file name based on the options