Laravel:找不到接口'Psr \ Http \ Message \ UriInterface' [英] Laravel: Interface 'Psr\Http\Message\UriInterface' not found
本文介绍了Laravel:找不到接口'Psr \ Http \ Message \ UriInterface'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试调用连接到api的函数时遇到此错误.
I am facing this error when trying to call a function that connects to an api.
完整错误是:
Symfony\Component\Debug\Exception\FatalErrorException: Interface 'Psr\Http\Message\UriInterface' not found in /path/to/project/vendor/guzzlehttp/psr7/src/Uri.php:13
在论坛上找不到太多帮助.
Cannot find much help on forums.
编辑
实际上这就是我得到的所有错误,请参见此屏幕截图:
Actually this is all the error I get, see this screenshot:
即使在/storage/logs中生成的日志中,我也只会收到此消息:
Even in the logs that are generated in /storage/logs, I only get this message:
[2017-06-08 03:03:35] local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Interface 'Psr\Http\Message\UriInterface' not found in /path/to/project/vendor/guzzlehttp/psr7/src/Uri.php:13
Stack trace:
#0 {main}
推荐答案
您的作曲者版本是否最新?您尝试过composer dump-autoload -o
吗?
Is your composer version up to date? Have you tried composer dump-autoload -o
?
这篇关于Laravel:找不到接口'Psr \ Http \ Message \ UriInterface'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文