title: Laravel pass parameters to route/action
body: <p>If I want to construct this url: /categories/5/update/?hidden=1 how could I pass both {id} param and hidden param (as GET) ?</p>
  
  <p>My route is:</p>
  
  <pre><code>Route::get('categories/{id}/update', 'CategoryController@update');
  </code></pre>
  
  <p>I don't want to make a form and put it as POST because I have a number of buttons which simply hides/shows/removes a category and dont want to make a lot of forms for simple actions, although it has nothing to do with the question</p>
  
  <p>I'm just a little bit confused, because it seems like <code>action('CategoryController@update', [$id, 'hidden' =&gt; 1])</code> constructs the right URL but I got no idea how it's distinguished that the first one ($id) must be in URL and the second is a GET param</p>