fix(curd): improve CURD generation logic

- Update relation handling in BuildCurd.php:
  - Modify how foreign key relationships are constructed
  - Remove unnecessary template generation for non-editable fields

- Enhance command processing in CurdGenerate.php:
  - Filter and re-index command arguments to improve flexibility
This commit is contained in:
wolfcode
2025-03-03 17:42:52 +08:00
parent 8531ec89ad
commit 07e11a1c45
2 changed files with 3 additions and 2 deletions

View File

@@ -137,6 +137,7 @@ class CurdGenerate extends AdminController
$command = $request->post('command', '');
if (empty($command)) $this->error('请输入命令');
$commandExp = explode(' ', $command);
$commandExp = array_values(array_filter($commandExp));
try {
$output = Console::call('curd', [...$commandExp]);