title: Laravel 5 - Nest Resource index method resource ID
body: <p>I try to make a default controller base on the <a href="http://laravel.com/docs/5.1/controllers#restful-resource-controllers" rel="nofollow">Laravel Restful Controller</a>, and I'm block with the <code>index</code> method with <code>Nested Resources</code>.</p>
  
  <p>I have a route <code>Route::resource('photos.comments', 'DefaultController');</code> and I need to get the <code>photo_id</code> in my <code>index</code> method. But so fare, I only get <code>{photos}</code>.</p>
  
  <pre><code>public function index(Request $request)
  {
      // $request-&gt;route('photos) =&gt; {photos}
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public function index(Request $request, $photosId)
  {
      // photosId =&gt; {photos}
  }
  </code></pre>
  
  <p>What am I missing ?</p>
  
  <p>Thanks</p>