Skip to content

Cannot Generate : [ErrorException] Undefined index: name #58

@tri-evendi

Description

@tri-evendi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions