blade get session variable code example
Example 1: get session blade
{{ session()->get('name') }}
Example 2: laravel get session variable in controller
$value = Session::get('variableSetOnPageA');
{{ session()->get('name') }}
$value = Session::get('variableSetOnPageA');