Php 我对Laravel有一个问题,当我尝试注销用户时,我得到的方法illumb\Database\Query\Builder::pullCache不存在

Php 我对Laravel有一个问题,当我尝试注销用户时,我得到的方法illumb\Database\Query\Builder::pullCache不存在,php,laravel,laravel-5.6,Php,Laravel,Laravel 5.6,救命啊。。。我最近将Laravel从5.5升级到>>5.6,现在当我注销时,我得到 论据 方法\Database\Query\Builder::pullCache不存在 /** *处理对方法的动态方法调用。 * *@param string$方法 *@param数组$parameters *@返回混合 * *@throws\BadMethodCallException */ 公共函数uu调用$method,$parameters { if static::hasMacro$方法{ 返回$this

救命啊。。。我最近将Laravel从5.5升级到>>5.6,现在当我注销时,我得到

论据

方法\Database\Query\Builder::pullCache不存在

/** *处理对方法的动态方法调用。 * *@param string$方法 *@param数组$parameters *@返回混合 * *@throws\BadMethodCallException */ 公共函数uu调用$method,$parameters { if static::hasMacro$方法{ 返回$this->macroCall$method,$parameters; } 如果Str::startsWith$method,'where'{ 返回$this->dynamicWhere$method,$parameters; } 抛出新的BadMethodCallExceptionsprintf “方法%s::%s不存在。”,静态::类,$Method ; } }
在5.6中,使用这样的注销

<a href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
<i class="demo-pli-unlock icon-lg icon-fw"></i>
Logout
</a>

composer dump autoload在更新后应该会刷新您的自动加载。感谢@Script47,刚刚这样做了,错误仍在显示try:php artisan cache:clearNo,仍在显示它与laravel附带的注销函数有关吗?该文件存在吗?Try:composer更新,然后是我建议的第一个命令。谢谢,我看不出与以前的命令有什么不同,{{csrf_field}