To get session variable in Laravel blade page use this code:
{{ Session::get('showuserid')->user_id }}
If you want to check that your session value is exist or not then follow this example code:
<?php $session_val=Session::get('user_id'); if($session_val==""){ echo "You have no session value"; }else{ echo "Your session value is" .$session_val; } ?>
Question and answer is powered by AnsPress.io