Encore\Admin\Commands\MakeCommand::getStub PHP Method

getStub() protected method

Get the stub file for the generator.
protected getStub ( ) : string
return string
    protected function getStub()
    {
        if ($this->option('model')) {
            return __DIR__ . '/stubs/controller.stub';
        }
        return __DIR__ . '/stubs/blank.stub';
    }