Recover password

The recover password process is taken care of using Laravel's integrated Illuminate\Foundation\Auth\ResetsPasswords.

          

            /**
            * Display the password reset view for the given token.
            *
            * If no token is present, display the link request form.
            *
            * @param  \Illuminate\Http\Request  $request
            * @param  string|null  $token
            * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
            */
            public function showResetForm(Request $request)
            {
                $token = $request->route()->parameter('token');

                return view('auth.passwords.reset')->with(
                    ['token' => $token, 'email' => $request->email]
                );
            }
          
        

Validation is taken care of in app/Http/Requests/PasswordRequest.php.

          
            public function rules()
            {
                return [
                    'old_password' => ['required', 'min:6', new CurrentPasswordCheckRule],
                    'password' => ['required', 'min:6', 'confirmed', 'different:old_password'],
                    'password_confirmation' => ['required', 'min:6'],
                ];
            }