Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Created April 22, 2014 06:29
Show Gist options
  • Save lozadaOmr/11167356 to your computer and use it in GitHub Desktop.
Save lozadaOmr/11167356 to your computer and use it in GitHub Desktop.
Include on app/filter.php - this is the filter to check if user is Authenticated otherwise will be logged in
Route::filter('auth', function()
{
if (Auth::guest()) return Redirect::guest('login');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment