Updated the documentation.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
This commit is contained in:
Jason Lewis 2012-06-24 19:37:08 +09:30
parent ac810f8597
commit cea48d4fe5
1 changed files with 9 additions and 0 deletions

View File

@ -152,6 +152,15 @@ #### Defining a URI pattern based filter:
Route::filter('pattern: admin/*', 'auth'); Route::filter('pattern: admin/*', 'auth');
Optionally you can register filters directly when attaching filters to a given URI by supplying an array with the name of the filter and a callback.
#### Defining a filter and URI pattern based filter in one:
Route::filter('pattern: admin/*', array('name' => 'auth', function()
{
//
}));
<a name="global-filters"></a> <a name="global-filters"></a>
## Global Filters ## Global Filters