Updated the documentation.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
This commit is contained in:
parent
ac810f8597
commit
cea48d4fe5
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue