Answers for "how to update session variable in laravel"

PHP
1

set session data in laravel

Session::put('key', 'value');

session(['key' => 'value']);
Posted by: Guest on September-24-2020
0

update session laravel

$request->session()->push('user.uploadProfilePic', true);
Posted by: Guest on November-06-2020

Code answers related to "how to update session variable in laravel"

Browse Popular Code Answers by Language