title: How to add custom error in Laravel?
body: <p>How to call custmo error in controller, that after to show in template?</p>
  
  <p>For example, I have condition:</p>
  
  <pre><code>if($id == 500){
     // call error
  }
  </code></pre>