src/Generators/DataTablesHtmlCommand.php 1 location
|
@@ 62-69 (lines=8) @@
|
| 59 |
|
* |
| 60 |
|
* @return string |
| 61 |
|
*/ |
| 62 |
|
protected function getStub() |
| 63 |
|
{ |
| 64 |
|
$config = $this->laravel['config']; |
| 65 |
|
|
| 66 |
|
return $config->get('datatables-buttons.stub') |
| 67 |
|
? base_path() . $config->get('datatables-buttons.stub') . '/html.stub' |
| 68 |
|
: __DIR__ . '/stubs/html.stub'; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
/** |
| 72 |
|
* Parse the name and format according to the root namespace. |
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 |
|
|