参数1传递给Symfony\Component\VarDumper\Server\Connection::\uu构造()。。。在第49行的DumpServerServiceProvider.php中调用

参数1传递给Symfony\Component\VarDumper\Server\Connection::\uu构造()。。。在第49行的DumpServerServiceProvider.php中调用,php,laravel,Php,Laravel,实际错误消息为 Argument 1 passed to Symfony\Component\VarDumper\Server\Connection::__const ruct() must be of the type string, null given, called in C:\xampp\htdocs\pa fg.com.bd\vendor\beyondcode\laravel-dump-server\src\DumpServerServiceProvid er.php o

实际错误消息为

Argument 1 passed to Symfony\Component\VarDumper\Server\Connection::__const
  ruct() must be of the type string, null given, called in C:\xampp\htdocs\pa
  fg.com.bd\vendor\beyondcode\laravel-dump-server\src\DumpServerServiceProvid
  er.php on line 49

我在新的PC机上安装了我现有的Laravel项目。但是,在完成所有过程后,由于上面提到的错误,我无法运行该项目。

实际上,问题是配置缓存时没有调试服务器配置

基本上,bootstrap/cache/config.php文件不包含调试服务器密钥。如果删除此文件,很可能也会清除错误

解决方案:


删除文件yourProject/bootstrap/cache/config.php

事实上,问题是配置缓存时没有调试服务器配置

基本上,bootstrap/cache/config.php文件不包含调试服务器密钥。如果删除此文件,很可能也会清除错误

解决方案:

删除文件yourProject/bootstrap/cache/config.php