Laravel ships with a set of filters, modify the auth filter to redirect to users/login instead of login:
https://github.com/laravel/laravel/blob/master/app/filters.php#L36
Route::filter('auth', function()
{
if (Auth::guest()) return Redirect::guest('users/login');
});
Line 36 of app/filters.php
.
Here is more info on filters: http://laravel.com/docs/routing#route-filters
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community