title: Laravel Nested resources and re-usable controllers
body: <p>I am creating an API and I want to include both regular resources and nested resources</p>
  
  <p>For example, I will say I have a <code>Post</code> resource and <code>Comment</code> resource. I have setup the appropriate routes and controllers like the following</p>
  
  <p><strong>Routes</strong></p>
  
  <pre><code>Route::resource('posts', 'PostsControllers'); // /posts/{id}
  Route::resource('comments', 'CommentsControllers'); /comments/{id}
  </code></pre>
  
  <p>But I also want to have comments as a nested resource of posts, like this</p>
  
  <p><strong>Nested resource route</strong></p>
  
  <pre><code>Route::resource('posts.comments', 'PostCommentsControllers'); /posts/{id}/comments/{id}
  </code></pre>
  
  <p>Because I have already written my <code>CommentsController</code>, I would like to know of the best method to re-use the <code>CommentsController</code> for my <code>PostsController</code></p>
  
  <p>Thanks</p>