title: Laravel URL Route get 2 parameter
body: <p>I need to delete a photo from an Album so I think I need 2 parameter on Routing
  but I get some error please give me solution or another way to delete a photo from an album</p>
  
  <p>here's my Routes.php :</p>
  
  <pre><code>Route::get('/admin/album/{albumid}/{id}/delete-photo', array(
      'as' =&gt; 'admin-photo-delete',
      'uses' =&gt; 'GalleryController@deletePhoto'
  ));
  </code></pre>
  
  <p>and call a function deletePhoto on GalleryController, here's GalleryController :</p>
  
  <pre><code>public function deletePhoto($albumID,$photoID){
  $photo = Album::find($albumID)-&gt;photo()-&gt;where('id','=',$photoID)-&gt;get();
  if($photo){
      File::delete(public_path().'/assets/images/gallery/'.$photo-&gt;images);
      $photo-&gt;delete();
      return Redirect::route('admin-gallery')-&gt;with('message','Photo was deleted successfully');
  }
  return Redirect::route('admin-gallery')-&gt;with('message','Photo delete failed');}
  </code></pre>
  
  <p>and here how I call route :</p>
  
  <pre><code> &lt;a href="{{URL::route('admin-photo-delete',$id,$photo-&gt;id)}}"&gt;Delete Photo&lt;/a&gt;
  </code></pre>
  
  <p>I already make sure that $id and $photo->id was not null but see what url showing there's no second parameter value so I get some error:
  <img src="https://i.stack.imgur.com/UbUHf.png" alt="enter image description here"></p>