Laravel 在composer 升级后出现undefind index:name 的解决方案

修改文件`/vendor/laravel/framework/src/Illuminate/Support/Collection.php`
```
public function mapWithKeys(callable $callback)
{
$result = [];
$item = $this->items;
if(isset($item['packages'])){
$item = $item['packages'];
}
foreach ($item as $key => $value) {
$assoc = $callback($value, $key);
foreach ($assoc as $mapKey => $mapValue) {
$result[$mapKey] = $mapValue;
}
}
return new static($result);
}
```