Skip to content

Commit b54ea44

Browse files
committed
Setup the default "before" and "after" filters.
1 parent 104344c commit b54ea44

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

app/routes.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,26 @@
1414
Route::get('/', function()
1515
{
1616
return View::make('hello');
17+
});
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Application & Route Filters
22+
|--------------------------------------------------------------------------
23+
|
24+
| Below you will find the "before" and "after" events for the application
25+
| which may be used to do any work before or after a request into your
26+
| application. Here you may also register your custom route filters.
27+
|
28+
*/
29+
30+
App::before(function($request)
31+
{
32+
// Fired before all requests to the application...
33+
});
34+
35+
36+
App::after(function($request, $response)
37+
{
38+
// Fired after all requests to the application...
1739
});

0 commit comments

Comments
 (0)