write to a session variable in laravel code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: session variable in laravel
$request->session()->put('key','value');
Session::put('variableName', $value);
$request->session()->put('key','value');