refactor(curd): optimize relation binding and code generation
- Move relation binding logic from model constructor to controller - Generate controller code for binding select fields-Remove unnecessary code and templates - Improve code readability and maintainability
This commit is contained in:
@@ -168,6 +168,12 @@ class Curd extends Command
|
||||
}
|
||||
}
|
||||
}
|
||||
if (PHP_SAPI == 'cli') {
|
||||
$output->info(">>>>>>>>>>>>>>>");
|
||||
$output->info('执行成功');
|
||||
}else {
|
||||
$output->writeln('执行成功');
|
||||
}
|
||||
}catch (\Exception $e) {
|
||||
if (PHP_SAPI == 'cli')
|
||||
CliEcho::error($e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user