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
|
@@ 85-92 (lines=8) @@
|
| 82 |
|
* |
| 83 |
|
* @return string |
| 84 |
|
*/ |
| 85 |
|
protected function getStub() |
| 86 |
|
{ |
| 87 |
|
$config = $this->laravel['config']; |
| 88 |
|
|
| 89 |
|
return $config->get('datatables-buttons.stub') |
| 90 |
|
? base_path() . $config->get('datatables-buttons.stub') . '/html.stub' |
| 91 |
|
: __DIR__ . '/stubs/html.stub'; |
| 92 |
|
} |
| 93 |
|
} |
| 94 |
|
|