更新为laravel 5.4后出现会话错误 [英] a session error after updating to laravel 5.4

查看:119
本文介绍了更新为laravel 5.4后出现会话错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从laravel 5.3更新到5.4后,我在供应商中遇到错误.错误是:

After updating from laravel 5.3 to 5.4, I encountered an error in vendor. The error is:

Symfony \ Component \ Debug \ Exception \ FatalThrowableError:调用/var/www/ostadbank.com/vendor/laravel/framework/src/Illuminate/Support/Manager中未定义的方法Illuminate \ Session \ Store :: set() .php:137

Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Session\Store::set() in /var/www/ostadbank.com/vendor/laravel/framework/src/Illuminate/Support/Manager.php:137

但是当我出错时,是:

Manager.php行137中的致命错误异常:对未定义方法Illuminate \ session \ store :: set()的调用

fatal error exception in Manager.php line 137:call to undefined method Illuminate\session\store::set()

我转到manager.php第137行,然后看到以下行:

I go to manager.php line 137 and I see the line below:

public function __call($method, $parameters) { return $this->driver()->$method(...$parameters); }

我不确定从哪里开始修改.

I am not sure where to start to modify.

请参见下面的屏幕截图:

See the screenshots below:

推荐答案

我解决了这个问题,有关更多信息,请阅读:

I solve it, for more information read this: https://laravel.com/docs/5.4/upgrade

所有对->set()方法的调用都应更改为->put().通常,Laravel应用程序永远不会调用set方法,因为它从未在Laravel文档中进行记录.但是,出于谨慎考虑,将其包含在此处.

All calls to the ->set() method should be changed to ->put(). Typically, Laravel applications would never call the set method since it has never been documented within the Laravel documentation. However, it is included here out of caution.

这篇关于更新为laravel 5.4后出现会话错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆