123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php
- Route::get('/', function()
- {
- return View::make('home.index');
- });
- Event::listen('404', function()
- {
- return Response::error('404');
- });
- Event::listen('500', function()
- {
- return Response::error('500');
- });
- Route::filter('before', function()
- {
-
- });
- Route::filter('after', function($response)
- {
-
- });
- Route::filter('csrf', function()
- {
- if (Request::forged()) return Response::error('500');
- });
- Route::filter('auth', function()
- {
- if (Auth::guest()) return Redirect::to('login');
- });
|