laravel 8 how to change session data code example
Example 1: set session data in laravel
Session::put('key', 'value');
session(['key' => 'value']);
Example 2: set session data in laravel
$value = Session::get('key');
$value = session('key');
Example 3: update session laravel
$request->session()->push('user.uploadProfilePic', true);