我将我的Homestead box从20.04 repo更新到了最新的官方版本。一切都安装得很好,似乎工作正常,但我的应用程序现在完全坏了。我过去升级过Homestead,没有任何问题。我运行的任何命令都会返回以下内容: PHP Fatal error: Uncaught Error: Call to a member function connection() on null in.') #2 {main} thrown in /home/vagrant/cod
显示误差
{message:“调用成员函数prepare() on null",…)异常:"Symfony\Component\Debug\Exception\FatalThrowableError“文件:"/var/www/html/broc/vendor/laravel/framework/src/Illuminate/Database/Connecti
不管命令是什么,它都返回Call to a member function connection() on null。一切都发生了,就好像拉勒维尔找不到.env[2022-09-25 05:46:09] production.ERROR: Call to a member function connection() on null<
我想做性能测试,所以我考虑在我的测试文件中使用PHPUnit_Framework_TestCase而不是TestCase。我牺牲了http请求测试,但我希望至少使用Laravel的一些组件(比如它的提供者等等)。<?assertEquals(Chat::CHAT_STATUS_WAIT_CONFIRM, $this->chat->getStatus());}
我说Call to a member function connection() on null时出错了。在这个例