Md.Jewel Mia
Md.Jewel Mia

Reputation: 3451

a session error after updating to 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

Upvotes: 4

Views: 15391

Answers (1)

Awolad Hossain
Awolad Hossain

Reputation: 1108

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.

Upvotes: 21

Related Questions