Support the ongoing development of Laravel.io →
Authentication Requests
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

ahh thats where it is :)

thanks

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.