laravel session put and get in database code example
Example 1: session variable in laravel
$request->session()->put('key','value');
Example 2: session in laravel
session()->regenerate();
$request->session()->put('key','value');
session()->regenerate();