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
|
@@ 125-133 (lines=9) @@
|
122 |
|
* @param string $stub |
123 |
|
* @return \Yajra\DataTables\Generators\DataTablesMakeCommand |
124 |
|
*/ |
125 |
|
protected function replaceBuilder(&$stub) |
126 |
|
{ |
127 |
|
$name = $this->qualifyClass($this->getNameInput()); |
128 |
|
$class = str_replace($this->getNamespace($name) . '\\', '', $name); |
129 |
|
|
130 |
|
$stub = str_replace('DummyBuilder', $class . 'Html', $stub); |
131 |
|
|
132 |
|
return $this; |
133 |
|
} |
134 |
|
|
135 |
|
/** |
136 |
|
* Parse the name and format according to the root namespace. |