laravel/laravel — pull request #854 by jasonlewis (2012-06-24 10:20:00+00:00)
Title: Allow filter patterns to supply a name and callback as an easier alternative.

Currently you can only supply the name of a registered filter to filter patterns. This now allows you to supply a name and callback to the method to save on precious lines. ;)

~~~~
Route::filter('pattern: admin/*', array('name' => 'admin.auth', function()
{
// Do some nifty things in here.
}));
~~~~

Can I get some +1's!?

Sent in regards to http://forums.laravel.com/viewtopic.php?pid=9966
Would like to know if people would find this useful. Cheers.