src/Generators/DataTablesScopeCommand.php 1 location
|
@@ 46-53 (lines=8) @@
|
43 |
|
* |
44 |
|
* @return string |
45 |
|
*/ |
46 |
|
protected function getStub() |
47 |
|
{ |
48 |
|
if ($stubFolder = $this->laravel['config']->get('datatables-buttons.stub')) { |
49 |
|
return base_path($stubFolder . '/scopes.stub'); |
50 |
|
} |
51 |
|
|
52 |
|
return __DIR__ . '/stubs/scopes.stub'; |
53 |
|
} |
54 |
|
} |
55 |
|
|
src/Generators/DataTablesHtmlCommand.php 1 location
|
@@ 268-275 (lines=8) @@
|
265 |
|
* |
266 |
|
* @return string |
267 |
|
*/ |
268 |
|
protected function getStub() |
269 |
|
{ |
270 |
|
$config = $this->laravel['config']; |
271 |
|
|
272 |
|
return $config->get('datatables-buttons.stub') |
273 |
|
? base_path() . $config->get('datatables-buttons.stub') . '/html.stub' |
274 |
|
: __DIR__ . '/stubs/html.stub'; |
275 |
|
} |
276 |
|
|
277 |
|
/** |
278 |
|
* Get the console command options. |
src/Generators/DataTablesMakeCommand.php 1 location
|
@@ 221-228 (lines=8) @@
|
218 |
|
* |
219 |
|
* @return string |
220 |
|
*/ |
221 |
|
protected function getStub() |
222 |
|
{ |
223 |
|
$config = $this->laravel['config']; |
224 |
|
|
225 |
|
return $config->get('datatables-buttons.stub') |
226 |
|
? base_path() . $config->get('datatables-buttons.stub') . '/datatables.stub' |
227 |
|
: __DIR__ . '/stubs/datatables.stub'; |
228 |
|
} |
229 |
|
|
230 |
|
/** |
231 |
|
* Get the console command options. |