laravel session not being passed code example
Example 1: session variable in laravel
$request->session()->put('key','value');
Example 2: laravel session put method
Session::put('key', 'value');
session(['key' => 'value']);
$request->session()->put('key','value');
Session::put('key', 'value');
session(['key' => 'value']);