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
|
@@ 219-226 (lines=8) @@
|
| 216 |
|
* |
| 217 |
|
* @return string |
| 218 |
|
*/ |
| 219 |
|
protected function getStub() |
| 220 |
|
{ |
| 221 |
|
$config = $this->laravel['config']; |
| 222 |
|
|
| 223 |
|
return $config->get('datatables-buttons.stub') |
| 224 |
|
? base_path() . $config->get('datatables-buttons.stub') . '/datatables.stub' |
| 225 |
|
: __DIR__ . '/stubs/datatables.stub'; |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
/** |
| 229 |
|
* Get the console command options. |