a session error after updating to laravel 5.4

泪湿孤枕 提交于 2019-12-01 04:48:14

问题


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

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

But when I go to my error is:

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

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:


回答1:


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

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.



来源:https://stackoverflow.com/questions/42126827/a-session-error-after-updating-to-laravel-5-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!