Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

a session error after updating to laravel 5.4

Tags:

laravel-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: 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:

enter image description here

enter image description here

like image 730
Md.Jewel Mia Avatar asked Nov 30 '22 09:11

Md.Jewel Mia


1 Answers

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.

like image 76
Awolad Hossain Avatar answered Dec 05 '22 19:12

Awolad Hossain