@@ 106-120 (lines=15) @@ | ||
103 | /** |
|
104 | * @return mixed |
|
105 | */ |
|
106 | protected function getTemplateContents() |
|
107 | { |
|
108 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
|
109 | ||
110 | return (new Stub('/model.stub', [ |
|
111 | 'NAME' => $this->getModelName(), |
|
112 | 'FILLABLE' => $this->getFillable(), |
|
113 | 'NAMESPACE' => $this->getClassNamespace($module), |
|
114 | 'CLASS' => $this->getClass(), |
|
115 | 'LOWER_NAME' => $module->getLowerName(), |
|
116 | 'MODULE' => $this->getModuleName(), |
|
117 | 'STUDLY_NAME' => $module->getStudlyName(), |
|
118 | 'MODULE_NAMESPACE' => $this->laravel['modules']->config('namespace'), |
|
119 | ]))->render(); |
|
120 | } |
|
121 | ||
122 | /** |
|
123 | * @return mixed |
@@ 55-69 (lines=15) @@ | ||
52 | * |
|
53 | * @return string |
|
54 | */ |
|
55 | protected function getTemplateContents() |
|
56 | { |
|
57 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
|
58 | ||
59 | return (new Stub('/route-provider.stub', [ |
|
60 | 'NAMESPACE' => $this->getClassNamespace($module), |
|
61 | 'CLASS' => $this->getFileName(), |
|
62 | 'MODULE_NAMESPACE' => $this->laravel['modules']->config('namespace'), |
|
63 | 'MODULE' => $this->getModuleName(), |
|
64 | 'CONTROLLER_NAMESPACE' => $this->getControllerNameSpace(), |
|
65 | 'WEB_ROUTES_PATH' => $this->getWebRoutesPath(), |
|
66 | 'API_ROUTES_PATH' => $this->getApiRoutesPath(), |
|
67 | 'LOWER_NAME' => $module->getLowerName(), |
|
68 | ]))->render(); |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * @return string |