set session in one method and get in other method laravel code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: set session data in laravel
$value = Session::get('key');
$value = session('key');
Session::put('variableName', $value);
$value = Session::get('key');
$value = session('key');