set value i session laravel code example
Example 1: laravel use session values in view
{{ session('key_name') }}
Example 2: session laravel
session(['name' => 'data']);
{{ session('key_name') }}
session(['name' => 'data']);