filter(function ($field) { return isset($field['type']); })->each(function ($field) { FieldManager::hook([$field]); }); } }