Nwidart\Modules\Commands\SeedMakeCommand::getTemplateContents PHP Method

getTemplateContents() protected method

protected getTemplateContents ( ) : mixed
return mixed
    protected function getTemplateContents()
    {
        $module = $this->laravel['modules']->findOrFail($this->getModuleName());
        return (new Stub('/seeder.stub', ['NAME' => $this->getSeederName(), 'MODULE' => $this->getModuleName(), 'NAMESPACE' => $this->getClassNamespace($module)]))->render();
    }