var value store in session in laravel code example
Example 1: session variable in laravel
$request->session()->put('key','value');
Example 2: set session data in laravel
$value = Session::get('key');
$value = session('key');
$request->session()->put('key','value');
$value = Session::get('key');
$value = session('key');