【发布时间】:2014-08-12 09:44:33
【问题描述】:
我已经使用 Laravel 显示自定义博客一个月左右了,它运行良好。
我刚刚浏览了我的网站,上面写着:
/vendor/symfony/security/Symfony/Component/Security/Core/Util/SecureRandom.php): failed to open stream: No such file or directory
查看文件夹后,上述文件的位置实际上是:
/vendor/symfony/security-core/Symfony/Component/Security/Core/Util/SecureRandom.php): failed to open stream: No such file or directory
但我没有改变这个?
如果我尝试运行 composer update 我会收到此错误:
root@server [/laravel]# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
[RuntimeException]
Could not scan for classes inside "app/tests/TestCase.php" which does not appear to be a file nor a folder
任何想法是什么导致了这个或我应该如何修复/调试它?
【问题讨论】:
-
您的生产服务器上有
app/tests/TestCase.php文件吗?如果没有 - 你应该从composer.json中删除它(或将文件放回那里) -
完美解决了,但不知道为什么会改变。
-
酷 - 我已经添加它作为你的答案。
-
如果我下面的回答解决了你的问题,请采纳。谢谢:)