title: Basic laravel Route filter parameters error
body: <p>I just start learning Laravel today and was reading documentation and testing example codes etc.</p>
  
  <p>I come up with a basic Route Filter Parameters problem which I'm not sure how it works.</p>
  
  <p>From an example on this documentation page <a href="http://laravel.com/docs/routing#basic-routing" rel="nofollow">http://laravel.com/docs/routing#basic-routing</a></p>
  
  <p><strong>The code below could be wrong, I am very new to laravel and not sure yet how it really work</strong></p>
  
  <p>I got code written as which give me <strong>ERROR</strong></p>
  
  <pre><code>Route::filter('old', function($age)  // a guess is that the correct way to pass $age=400 ?
  {
     if($age &lt; 200){
       return Redirect::to(''); 
     }
  });
  
  Route::get('user', array('before' =&gt; 'old:400', function()
  {
      return 'You are over 200 years old!';
  }));
  </code></pre>
  
  <p>From this codes its mean that its passing a value of "400" to the filter old right? ... But I don't know how to get that 400 value in the filter... I mean in which variable that "400" is being passed as or how to retrieve that "400" value in filter function.</p>
  
  <p>So the question is how to write that filter function to get that "400" value ?</p>
  
  <p>Thanks in advance :)  </p>