I'm reading the Laravel documentation and it is saying that it is possible to add a pattern based filter to a route
Route::filter('admin', function()
{
//
});
Route::when('admin/*', 'admin');
I want to know how to specify if the filter is executed before or after the request?