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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user