laravel session helper update put code example
Example 1: laravel session put method
Session::put('key', 'value');
session(['key' => 'value']);
Example 2: update session laravel
$request->session()->push('user.uploadProfilePic', true);
Session::put('key', 'value');
session(['key' => 'value']);
$request->session()->push('user.uploadProfilePic', true);