refactoring various pieces of the framework.

This commit is contained in:
Taylor Otwell
2011-10-18 20:19:36 -05:00
parent e985057b4c
commit 9fc9f88a41
18 changed files with 193 additions and 114 deletions

View File

@@ -50,13 +50,16 @@ return array(
'after' => function($response)
{
// Do stuff after every request to your application.
if (Config::get('session.driver') !== '')
{
Session::flash(Input::old_input, Input::old());
}
},
'auth' => function()
{
if ( ! Auth::check()) return Redirect::to('login');
if ( ! Auth::check()) return Redirect::to_login();
},