From my understanding, we can pass argument to filter via this:
Route::filter('age', function($route, $request, $value)
{
//
});
Route::get('user', array('before' => 'owner|age:200', function()
{
return 'Hello World';
}));
But, how can I pass array to the filter? For example, I want to pass "cars, speed boat, condominium" to the owner filter. The number of items in the array is dynamic, depending on the route. How is it possible to do that?
Thank you.