title: Customizing The "Not Found" Behavior of Laravel's Routing "Explicit Binding"
body: <p>Here's the documentation: <a href="https://laravel.com/docs/5.2/routing#route-model-binding" rel="nofollow">https://laravel.com/docs/5.2/routing#route-model-binding</a></p>
  
  <p>The routes:</p>
  
  <pre><code>Route::group(['prefix' =&gt; 'u'], function () {
      Route::post('create', ['as' =&gt; 'createUser', 'uses' =&gt; 'UserController@create']);
      Route::get('{uuid}', ['as' =&gt; 'userDashboard', 'uses' =&gt; 'UserController@dashboard']);
  });
  </code></pre>
  
  <p>The UserController.php:</p>
  
  <pre><code>public function dashboard(User $uuid)
  {
      return View::make('user.dashboard');
  }
  </code></pre>
  
  <p>Whenever the User isn't found in the database it throws these two exceptions:</p>
  
  <pre><code>2/2
  NotFoundHttpException in Handler.php line 103:
  No query results for model [App\User].
  
  1/2
  ModelNotFoundException in Builder.php line 303:
  No query results for model [App\User].
  </code></pre>
  
  <p>How do I customize the error? I want to redirect to the <code>createUser</code> route. The documentation instructs to pass a <code>Closure</code> as a third argument but I don't know how to do that with my current code.</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>This is what I've tried so far without success:</p>
  
  <pre><code>   Route::model('{uuid}', ['as' =&gt; 'userDashboard', 'uses' =&gt; 'UserController@dashboard'], function () {
          App::abort(403, 'Test.');
      });
  
     Route::get('{uuid}', ['as' =&gt; 'userDashboard', 'uses' =&gt; 'UserController@dashboard'], function () {
          App::abort(403, 'Test.');
      });
  </code></pre>