refactoring the filters.

This commit is contained in:
Taylor Otwell 2011-11-01 23:12:56 -05:00
parent 6048d20921
commit 2c108a9188
1 changed files with 3 additions and 12 deletions

View File

@ -50,28 +50,19 @@
'after' => function($response)
{
if (Config::get('session.driver') !== '')
{
Input::flash();
}
if (Config::get('session.driver') !== '') Input::flash();
},
'auth' => function()
{
if ( ! Auth::check())
{
return Redirect::to_login();
}
if ( ! Auth::check()) return Redirect::to_login();
},
'csrf' => function()
{
if (Input::get('csrf_token') !== Form::raw_token())
{
return Response::error('500');
}
if (Input::get('csrf_token') !== Form::raw_token()) return Response::error('500');
},
);