Laravel:array_merge():参数#2不是数组错误 [英] Laravel: array_merge(): Argument #2 is not an array error

查看:40
本文介绍了Laravel:array_merge():参数#2不是数组错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

异常开始出现在所有视图中,当我尝试运行 composer update 时,它总是以

Exceptions started to appear in all views, and when I try to run composer update, it always ends up with

{"error":{"type":"ErrorException","message":"array_merge(): Argument #2 is not an array","file":"/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php","line":188}}

推荐答案

经过大量搜索和探索app"文件夹中的每个文件后,似乎一个文件已损坏

After a lot of searching and exploring each file in the 'app' folder, it appears that one file was corrupt

Delete app/storage/meta/services.json 并重新运行 composer update 这应该可以解决问题.

Delete app/storage/meta/services.json and re-run composer update and this should solve it.

这篇关于Laravel:array_merge():参数#2不是数组错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆