generator-builder icon indicating copy to clipboard operation
generator-builder copied to clipboard

Cannot Generate : [ErrorException] Undefined index: name

Open tri-evendi opened this issue 4 years ago • 0 comments

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?

tri-evendi avatar Oct 30 '20 04:10 tri-evendi