generator-builder
generator-builder copied to clipboard
Cannot Generate : [ErrorException] Undefined index: name
in this code on vendors/InfyOmLabs/generator-builder/controllers/GeneratorBuilderController.php ; private function validateFields($fields) { $fieldsGroupBy = collect($fields)->groupBy(function ($item) { return strtolower($item['name']); });
$duplicateFields = $fieldsGroupBy->filter(function (Collection $groups) {
return $groups->count() > 1;
});
if (count($duplicateFields)) {
throw new \Exception('Duplicate fields are not allowed');
}
return true;
}
return error responseText: "{↵ "message": "Undefined index: name". How to fix this?