title: Laravel Pass Parameter from Route to Filter
body: <p>I am using the laravel framework.
  If I have the following route:</p>
  
  <pre><code>Route::get('/test/{param}', array('before'=&gt;'test_filter', 'SomeController@anyAction'));
  </code></pre>
  
  <p>And this filter:</p>
  
  <pre><code>Route::filter('test_filter', function() {
      $param = [Get the parameter from the url];
      return "The value is $param";
  });
  </code></pre>
  
  <p>How can I pass parameters to the filter so that when visiting /test/foobar I would get a page saying: "The value is foobar"?</p>