title: How to create an error page to a QueryException?
body: <p>I'm working on a commercial application and I've created Blade files for several kinds of HTTP errors. They are placed in <code>/resources/views/errors</code> and are working fine for authorization (503.blade.php), page not found (404.blade.php), and so on.</p>
  
  <p>I've created files for 400, 403, 404, 500 and 503, until now.
  The issue is when a <code>QueryException</code> is thrown. In this case, <em>"Whoops, looks like something went wrong."</em> appears.</p>
  
  <p>For example, considering that <code>name</code> cannot be null, when I do something like this, Laravel throws a <code>QueryException</code>:</p>
  
  <pre><code>User::create([
            'name' =&gt; null,
            'email' =&gt; 'some@email.com'
  ]);
  </code></pre>
  
  <p>The exception would be:</p>
  
  <blockquote>
    <p>QueryException in Connection.php line 651: SQLSTATE[23000]: Integrity
    constraint violation: 1048 Column 'name' cannot be null (SQL: insert
    into <code>users</code> (<code>nome</code>, <code>email</code>, <code>updated_at</code>, <code>created_at</code>) values (,
    some@email.com, 2018-02-09 12:10:50, 2018-02-09 12:10:50))</p>
  </blockquote>
  
  <p>I don't want <em>"Whoops, looks like something went wrong."</em> to appear to the end user, I want to show a custom page. What kind of error file do I need to create to achieve this behavior?</p>