Commit 2c108a91 authored by Taylor Otwell's avatar Taylor Otwell

refactoring the filters.

parent 6048d209
......@@ -50,28 +50,19 @@ return array(
'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');
},
);
\ No newline at end of file
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