set the value in the session larave code example
Example 1: set session in laravel
Session::get('variableName');
Example 2: laravel use session values in view
<!--This is placed in the view section --> {{ session('key_name') }}
Session::get('variableName');
<!--This is placed in the view section --> {{ session('key_name') }}