laravel put data in session code example
Example 1: laravel session put method
Session::put('key', 'value');
session(['key' => 'value']);
Example 2: laravel use session values in view
<!--This is placed in the view section --> {{ session('key_name') }}