Commit cea48d4f authored by Jason Lewis's avatar Jason Lewis

Updated the documentation.

Signed-off-by: 's avatarJason Lewis <jason.lewis1991@gmail.com>
parent ac810f85
......@@ -152,6 +152,15 @@ Sometimes you may want to attach a filter to all requests that begin with a give
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>
## Global Filters
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment