app/Console/Commands/ControllerMakeCommand.php
protected function getViewStub($method = null, $name = null)
    {
        if (in_array($name, [ $this->qualifyClass('ModelController'), $this->qualifyClass('Model/ChildController') ])) {
            if ($this->option('parent')) {
                return __DIR__.'/stubs/view.nested.model.'.$method.'.stub';
            } elseif ($this->option('model') || $this->option('resource')) {
                return __DIR__.'/stubs/view.model.'.$method.'.stub';
            }
        }

        if ($this->option('parent')) {
            return __DIR__.'/stubs/view.nested.'.$method.'.stub';
        } elseif ($this->option('model') || $this->option('resource')) {
            return __DIR__.'/stubs/view.'.$method.'.stub';
        }

        return __DIR__.'/stubs/view.stub';
    }
protected function getViewStub($method = null, $name = null)
    {
        if (in_array($name, [ $this->qualifyClass('ModelController'), $this->qualifyClass('Model/ChildController') ])) {
            if ($this->option('parent')) {
                return __DIR__.'/stubs/view.nested.model.'.$method.'.stub';
            } elseif ($this->option('model') || $this->option('resource')) {
                return __DIR__.'/stubs/view.model.'.$method.'.stub';
            }
        }

        if ($this->option('parent')) {
            return __DIR__.'/stubs/view.nested.'.$method.'.stub';
        } elseif ($this->option('model') || $this->option('resource')) {
            return __DIR__.'/stubs/view.'.$method.'.stub';
        }

        return __DIR__.'/stubs/view.stub';
    }
protected function getViewStub ( $ method = null , $ name = null ) { if ( in_array ( $ name , [ $ this -> qualifyClass ( 'ModelController' ) , $ this -> qualifyClass ( 'Model/ChildController' ) ] ) ) { if ( $ this -> option ( 'parent' ) ) { return __DIR__ . '/stubs/view.nested.model.' . $ method . '.stub' ; } elseif ( $ this -> option ( 'model' ) || $ this -> option ( 'resource' ) ) { return __DIR__ . '/stubs/view.model.' . $ method . '.stub' ; } } if ( $ this -> option ( 'parent' ) ) { return __DIR__ . '/stubs/view.nested.' . $ method . '.stub' ; } elseif ( $ this -> option ( 'model' ) || $ this -> option ( 'resource' ) ) { return __DIR__ . '/stubs/view.' . $ method . '.stub' ; } return __DIR__ . '/stubs/view.stub' ; }
Get the view stub file for the generator.

@param string|null $method
@param string|null $name
@return string
Get the view stub file for the generator .