Support the ongoing development of Laravel.io →
Authentication Requests
Last updated 1 year 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...

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 1 year ago.
0

ahh thats where it is :)

thanks

Last updated 1 year 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.