title: Laravel routing: how to pass parameter to controller (not via URL)?
body: <p>I have two routes: <code>A/{param}/C</code> and <code>B/{param}/C</code>. Also I have a controller with method:</p>
  
  <pre><code>public function index($param, $param1 = false)
  {
      //...
  }
  </code></pre>
  
  <p>In case of <code>A/{param}/C</code> I pass only one parameter - one specified in URL, and the function uses the default for second one. In case of the second route, I want to pass <code>true</code> as second parameter. Since it isn't specified in URL, how to pass it to the function?</p>