我遇到 Laravel 的问题,当我尝试注销用户时,我得到 Method Illuminate\Database\Query\Builder::pullCache does not exist

I have a problem with Laravel, when i try to logout users I get Method Illuminate\Database\Query\Builder::pullCache does not exist

帮助...我最近将 Laravel 从 5.5 升级到 >> 5.6,现在当我注销时我得到...

参数

Method Illuminate\Database\Query\Builder::pullCache does not exist.

    /**
     * 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>