middleware('guest'); } public function showResetForm(Request $request, $token = null) { return view('auth.passwords.reset_new')->with( ['token' => $token, 'email' => $request->email] ); } public function broker() { return Password::broker('users'); } /** * Get the guard to be used during password reset. * * @return \Illuminate\Contracts\Auth\StatefulGuard */ // protected function guard() // { // return Auth::user(); // } // protected function resetPassword($user, $password) // { // $user->password = Hash::make($password); // $user->setRememberToken(Str::random(60)); // $user->save(); // event(new PasswordReset($user)); // //you should comment below and redirect any route you want like: // // return redirect('http://example.com'); // //$this->guard()->login($user); // return redirect()->route('home'); // } }