new feature

This commit is contained in:
JaguarJack
2022-12-16 18:30:36 +08:00
parent 098463f4e1
commit 47a76af4b0
13 changed files with 170 additions and 61 deletions

View File

@@ -17,9 +17,9 @@ class Controllers implements OptionInterface
foreach ($controllerFiles as $controllerFile) {
$controllers[] = [
'label' => Str::of(File::name($controllerFile))->remove('Controller'),
'label' => Str::of(File::name($controllerFile))->lcfirst()->remove('Controller'),
'value' => Str::of(File::name($controllerFile))->remove('Controller'),
'value' => Str::of(File::name($controllerFile))->lcfirst()->remove('Controller'),
];
}
}

View File

@@ -14,9 +14,9 @@ class Modules implements OptionInterface
->each(function ($module) use (&$modules) {
$modules[] = [
'label' => $module['name'],
'label' => $module['title'],
'value' => $module['path']
'value' => $module['name']
];
});