Skip to content

Commit 2c8a4b2

Browse files
motchjunWidart
authored andcommitted
Update to Laravel 5.4 Sessions:Symfony Compatibility (#328)
See https://laravel.com/docs/5.4/upgrade >set() method should be changed to ->put() .... Sessions:Symfony Compatibility Laravel's session handlers no longer implements Symfony's SessionInterface. Implementing this interface required us to implement extraneous features that were not needed by the framework. Instead, a new Illuminate\Contracts\Session\Session interface has been defined and may be used instead. The following code changes should also be applied: 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. All calls to the ->getToken() method should be changed to ->token(). All calls to the $request->setSession() method should be changed to setLaravelSession().
1 parent 255c93f commit 2c8a4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Setting/Http/Controllers/Admin/SettingController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function store(SettingRequest $request)
4949

5050
public function getModuleSettings(Module $currentModule)
5151
{
52-
$this->session->set('module', $currentModule->getLowerName());
52+
$this->session->put('module', $currentModule->getLowerName());
5353

5454
$modulesWithSettings = $this->setting->moduleSettings($this->module->enabled());
5555

0 commit comments

Comments
 (0)