title: Multiple wildcards in Laravel resource routing
body: <p>I declared resource route like below</p>
  
  <blockquote>
    <p>Route::resource('{slug}/user','ManageUsersController');</p>
  </blockquote>
  
  <p>This gives me a route </p>
  
  <blockquote>
    <p>{slug}/user/{id}</p>
  </blockquote>
  
  <p>where slug is the slug of a company name and id is the specific id of user. </p>
  
  <p>In view, I declared anchor tag : <code>&lt;a href=user/{!! $user-&gt;id!!}</code>>User<code>&lt;/a&gt;</code>
  This directs me to the function <code>show</code> in ManageUserController</p>
  
  <pre><code> public function show($id)
      {
          return $id;
      }
  </code></pre>
  
  <p>But the return result is the <code>slug</code>, not the the id of the user. My URL is <code>project/company-name/user/5</code></p>
  
  <p>Where did i go wrong ? how can i get the user ID in return rather than the slug ?</p>
  
  <p>-thanx</p>