title: Laravel 5 Route Model Binding is not working
body: <p>I'm trying to use Route Model Binding but got issues.</p>
  
  <p><strong>RouteServiceProvider.php</strong></p>
  
  <pre><code>public function boot(Router $router)
  {
      parent::boot($router);
  
      $router-&gt;model('categories', 'App\Category');
  }
  </code></pre>
  
  <p><strong>Route.php</strong></p>
  
  <pre><code>Route::get('categories/trash', ['as' =&gt; 'admin.categories.trash', 'uses' =&gt; 'CategoriesController@trash']);
  Route::get('categories/{categories}/restore', ['as' =&gt; 'admin.categories.restore', 'uses' =&gt; 'CategoriesController@restore']);
  Route::get('categories/{categories}/delete', ['as' =&gt; 'admin.categories.delete', 'uses' =&gt; 'CategoriesController@delete']);
  Route::resource('categories', 'CategoriesController');
  </code></pre>
  
  <p><strong>CategoriesController.php</strong></p>
  
  <pre><code>public function restore(Category $category)
  {
      $category-&gt;restore();
      return redirect()-&gt;back();
  }
  
  public function delete(Category $category)
  {
      $category-&gt;forceDelete();
      return redirect()-&gt;back();
  }
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code> &lt;a href="{!! URL::route('admin.categories.restore', $category-&gt;id) !!}"&gt;Restore&lt;/a&gt;
   &lt;a href="{!! URL::route('admin.categories.delete', $category-&gt;id) !!}"&gt;Delete Permanently&lt;/a&gt;
  </code></pre>
  
  <p>But When I tried to <code>restore</code> or <code>delete</code> I got issue of <code>NotFoundHttpException</code></p>
  
  <p><img src="https://i.stack.imgur.com/luVQa.png" alt="enter image description here"></p>