Support the ongoing development of Laravel.io →
Configuration Authentication Laravel

Hello, I have installed fresh copy of Laravel 5.5 and have installed auth scaffolding aswell. I changed all redirection from '/home' to '/' but I can't change redirect if reset password link is expired or used. If I click on reset password link which was used, Laravel redirect me on '/home'... I tried to override 'RedirectsUsers' trait but it doesn't work. I don't know how can solve this problem. Anyone can help?

Thanks.

Last updated 3 years ago.
0

I found solution:

In App\Http\Middleware\RedirectIfAuthenticated

change

if (Auth::guard($guard)->check()) {
    return redirect('/home');
}

to

if (Auth::guard($guard)->check()) {
    return redirect('/');
}
Last updated 7 years ago.
0

In your auth.php configuration file, you may configure multiple password "brokers", which may be used to reset passwords on multiple user tables. You can customize the included ForgotPasswordController and ResetPasswordController to use the broker of your choice by overriding the broker method:

use Illuminate\Support\Facades\Password;

protected function broker() { return Password::broker('name'); }

By:Xtreem Solution

Highly Skilled Laravel Developer

Dedicated PHP Developer

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

© 2025 Laravel.io - All rights reserved.