php - 我在使用 Laravel 时遇到问题,当我尝试注销用户时,我得到 Method Illuminate\Database\Query\Builder::pullCache 不存在
问题描述
帮助...我最近将 Laravel 从 5.5 升级到 >> 5.6,现在当我注销时,我得到...
论据
方法 Illuminate\Database\Query\Builder::pullCache 不存在。
/**
* Handle dynamic method calls into the method.
*
* @param string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
if (static::hasMacro($method)) {
return $this->macroCall($method, $parameters);
}
if (Str::startsWith($method, 'where')) {
return $this->dynamicWhere($method, $parameters);
}
throw new BadMethodCallException(sprintf(
'Method %s::%s does not exist.', static::class, $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>
推荐阅读
- python - 将 Heroku 与 Django 一起使用时,postgresql 数据库的目的是什么?
- javascript - 如何创建一个 jQuery 函数来切换暗模式?
- c++ - 算法错误:参数不能从对中转换 1
- python - PyAutoGUI - LocateAllOnScreen - 为什么信心不起作用?
- assembly - 无法在程序集中遵循 rbp 值
- jupyter-notebook - 我正在尝试将我的笔记本放在 Kaggle 上的特定目录中
- c# - 为什么 MonoBehaviour Start() 上的类引用丢失
- python - 使用 seaborn 绘制 numpy 变量列表
- ios - 是否可以在类/结构实例方法中调用 GameScene 函数?
- angularjs - 如何在不同的页面中加载图表