Use Redirect::guest in "auth" filter.

This commit is contained in:
Taylor Otwell 2013-04-23 22:27:51 -05:00
parent b042d46bfe
commit 763f1d5181
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
Route::filter('auth', function()
{
if (Auth::guest()) return Redirect::route('login');
if (Auth::guest()) return Redirect::guest('login');
});