session data in blade laravel code example
Example 1: session variable in laravel
$request->session()->put('key','value');
Example 2: set session data in laravel
Session::put('key', 'value');
session(['key' => 'value']);
$request->session()->put('key','value');
Session::put('key', 'value');
session(['key' => 'value']);