title: Displaying the error in production mode with log number in laravel
body: <p>I have an application built in <strong>laravel 5.8</strong> which is in <strong>production mode</strong>. As the site is live I don't want to display any errors to our users. But If some error occurs then I want the log number or any reference that indicates what error was thrown at that particular time. </p>
  
  <p>So I wanted to know if there is any way to display <strong>"Oops something went wrong ref#123456"</strong> to our users. So that they can send us a screenshot or reference number and we can track what actually happend by checking our <strong>log file</strong>.</p>
  
  <p>Thanks in advance. Happy coding.</p>