laravel use session in blade code example
Example 1: get session blade
{{ session()->get('name') }}
Example 2: session variable in laravel
$request->session()->put('key','value');
Example 3: session laravel
session(['name' => 'data']);
{{ session()->get('name') }}
$request->session()->put('key','value');
session(['name' => 'data']);