how to get session laravel code example
Example 1: session variable in laravel
$request->session()->put('key','value');
Example 2: laravel get session variable in controller
$value = Session::get('variableSetOnPageA');
$request->session()->put('key','value');
$value = Session::get('variableSetOnPageA');