更新创建table命令

This commit is contained in:
JaguarJack 2021-05-17 08:42:52 +08:00
parent 8c307cd4fb
commit b55ca29fb2

View File

@ -36,7 +36,7 @@ class CreateTableCommand extends Command
FileSystem::put( FileSystem::put(
CatchAdmin::moduleDirectory($module) . 'tables' . DIRECTORY_SEPARATOR . (ucwords($table) . '.php'), CatchAdmin::moduleDirectory($module) . 'tables' . DIRECTORY_SEPARATOR . (ucwords($table) . '.php'),
$this->tableTemp($module, ucwords($table), $form) $this->tableTemp($module, lcfirst($table), $form)
); );
if (! $form) { if (! $form) {
@ -44,7 +44,7 @@ class CreateTableCommand extends Command
CatchAdmin::moduleDirectory($module) . CatchAdmin::moduleDirectory($module) .
'tables' . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR 'tables' . DIRECTORY_SEPARATOR . 'forms' . DIRECTORY_SEPARATOR
. (ucwords($table) . '.php'), . (ucwords($table) . '.php'),
$this->formTemp($module, ucwords($table)) $this->formTemp($module, lcfirst($table))
); );
} }