create session variable laravel code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: laravel get session variable in controller
$value = Session::get('variableSetOnPageA');
Session::put('variableName', $value);
$value = Session::get('variableSetOnPageA');