src/Generators/DataTablesHtmlCommand.php 1 location
|
@@ 217-225 (lines=9) @@
|
214 |
|
* @param string $stub |
215 |
|
* @return self |
216 |
|
*/ |
217 |
|
protected function replaceBuilder(&$stub) |
218 |
|
{ |
219 |
|
$name = $this->qualifyClass($this->getNameInput()); |
220 |
|
$class = str_replace($this->getNamespace($name) . '\\', '', $name); |
221 |
|
|
222 |
|
$stub = str_replace('DummyBuilder', $class . 'Html', $stub); |
223 |
|
|
224 |
|
return $this; |
225 |
|
} |
226 |
|
|
227 |
|
/** |
228 |
|
* Parse the name and format according to the root namespace. |
src/Generators/DataTablesMakeCommand.php 1 location
|
@@ 123-131 (lines=9) @@
|
120 |
|
* @param string $stub |
121 |
|
* @return \Yajra\DataTables\Generators\DataTablesMakeCommand |
122 |
|
*/ |
123 |
|
protected function replaceBuilder(&$stub) |
124 |
|
{ |
125 |
|
$name = $this->qualifyClass($this->getNameInput()); |
126 |
|
$class = str_replace($this->getNamespace($name) . '\\', '', $name); |
127 |
|
|
128 |
|
$stub = str_replace('DummyBuilder', $class . 'Html', $stub); |
129 |
|
|
130 |
|
return $this; |
131 |
|
} |
132 |
|
|
133 |
|
/** |
134 |
|
* Parse the name and format according to the root namespace. |