Parametr Laravel Pass z Route to Filter

Używam frameworka laravel. Jeśli mam następującą trasę:

Route::get('/test/{param}', array('before'=>'test_filter', 'SomeController@anyAction'));

I ten filtr:

Route::filter('test_filter', function() {
    $param = [Get the parameter from the url];
    return "The value is $param";
});

Jak mogę przekazać parametry do filtra, aby podczas odwiedzania / test / foobar otrzymałem stronę mówiącą: „Wartość jest foobar”?

questionAnswers(1)

yourAnswerToTheQuestion