本文介绍了错误:将laravel 8更新为9时。script@php artisan Package:DISCOVER--ansi处理自动加载转储后事件时返回错误代码1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Error
Undefined constant IlluminateHttpRequest::HEADER_X_FORWARDED_ALL
at C:wamp64wwwvuexylaravelvendorfideloperproxyconfig rustedproxy.php:48
44▕ * - 'HEADER_X_FORWARDED_AWS_ELB' (If you are using AWS Elastic Load Balancer)
45▕ *
46▕ * @link https://symfony.com/doc/current/deployment/proxies.html
47▕ */
➜ 48▕ 'headers' => IlluminateHttpRequest::HEADER_X_FORWARDED_ALL,
49▕
50▕ ];
51▕
1 C:wamp64wwwvuexylaravelvendorlaravelframeworksrcIlluminateSupportServiceProvider.php:138
require()
2 C:wamp64wwwvuexylaravelvendorfideloperproxysrcTrustedProxyServiceProvider.php:28
IlluminateSupportServiceProvider::mergeConfigFrom("C:wamp64wwwvuexylaravelvendorfideloperproxyconfig rustedproxy.php", "trustedproxy")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
推荐答案
具有上述答案的同事原则上是正确的。只是他忘了提到,在对文件进行了所有更改后,您需要删除包fideloper/proxy
:
https://laravel.com/docs/9.x/upgrade
这篇关于错误:将laravel 8更新为9时。script@php artisan Package:DISCOVER--ansi处理自动加载转储后事件时返回错误代码1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!