laravel set session in controller code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: session variable in laravel
$request->session()->put('key','value');
Example 3: set session data in laravel
$value = Session::get('key');
$value = session('key');
Example 4: session in laravel
session()->regenerate();