title: How to handle 404 as json response if route not found?
body: <p>Using Laravel 5.4, I would like to send the json response, while there is no route found in api.php, how can I archive with in api.php and without Controller and Model class.</p>
  
  <p><strong>short</strong>: How to handle when the route name is incorrect?</p>
  
  <p>Tried with <code>fallback</code> :</p>
  
  <pre><code>Route::fallback(function(){
      return response()-&gt;json(['message' =&gt; 'Not Found!'], 404);
  });
  </code></pre>
  
  <p>Error for above :</p>
  
  <pre><code>Attribute [fallback] does not exist.
  </code></pre>
  
  <p>Please help me, how to handle Route not found exception when incorrect route name request.</p>