flash session value access laravel code example
Example 1: print session in laravel
dd(session()->all());
Example 2: laravel get session variable in controller
$value = Session::get('variableSetOnPageA');
dd(session()->all());
$value = Session::get('variableSetOnPageA');