Nwidart\Modules\Commands\ModelCommand::getTemplateContents PHP 메소드

getTemplateContents() 보호된 메소드

protected getTemplateContents ( ) : mixed
리턴 mixed
    protected function getTemplateContents()
    {
        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
        return (new Stub('/model.stub', ['NAME' => $this->getModelName(), 'FILLABLE' => $this->getFillable(), 'NAMESPACE' => $this->getClassNamespace($module), 'CLASS' => $this->getClass(), 'LOWER_NAME' => $module->getLowerName(), 'MODULE' => $this->getModuleName(), 'STUDLY_NAME' => $module->getStudlyName(), 'MODULE_NAMESPACE' => $this->laravel['modules']->config('namespace')]))->render();
    }