title: How can i handle the page crash in laravel?
body: <p>Whenever i leave my website for like 1 hour and whenever i try to access the different part of the website i get <strong>"Trying to get property 'id of non object"</strong>, it means that the user have been logged out but the page crashed.</p>
  
  <p>So i need a way so that i can apply a middleware to handle this issue??</p>
  
  <p>can anyone help me??</p>
  
  <p><a href="https://i.stack.imgur.com/vIbZv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vIbZv.png" alt="enter image description here"></a>'</p>