disable forgot password in laravel 7

Solutions on MaxInterview for disable forgot password in laravel 7 by the best coders in the world

showing results for - "disable forgot password in laravel 7"
Stefano
26 Jan 2018
11. Simple Method :  
2  Auth::routes(['reset' => false]);
3
42. If that doesnt work, in ForgotPasswordController, you will see that a trait
5    SendsPasswordResetEmails is used, in that you will find the function
6    showLinkRequestForm which you can override:
7
8    public function showLinkRequestForm()
9    {
10        return view('auth.passwords.email');
11    }
12
13and replace it with a redirect to go back, or a 404, or something else that you
14want.