title: How to considered soft delete in laravel inbuilt reset password
body: <p>I want to apply soft delete in laravel5.4 inbuilt reset password. Due to duplicate email of soft delete deleted email password is change but not the correct one. I am getting stuck to where apply deleted should be null instead of email checking only. that's why it fetches the deleted record insted of correct one. My reset password controller is given below. Please check my reset controller &amp; suggest any solution please.</p>
  <pre><code>class ResetPasswordController extends Controller
  {
      use ResetsPasswords;
  
      protected $redirectTo = 'member/welcome';
  
      public function showResetForm(Request $request, $token = null)
      {
          return view('frontend.member.auth.passwords.reset')-&gt;with(
              ['token' =&gt; $token, 'email' =&gt; $request-&gt;email]
          );
      }
      
      public function reset(Request $request)
      {
          $this-&gt;validate($request, $this-&gt;rules(), $this-&gt;validationErrorMessages());
          $response = $this-&gt;broker()-&gt;reset(
              $this-&gt;credentials($request), function ($user, $password) {
                  $this-&gt;resetPassword($user, $password);
              }
          );
  
          return $response == Password::PASSWORD_RESET
                      ? $this-&gt;sendResetResponse($response)
                      : $this-&gt;sendResetFailedResponse($request, $response);
      }
  
      protected function rules()
      {
          return [
              'token' =&gt; 'required',
              'email' =&gt; 'required|email',
              'password' =&gt; 'required|confirmed|min:8|regex:/^.*(?=.{3,})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\d\x])(?=.*[@!$#%^*()-_]).*$/',
          ];
      }
      /**
       * Get the password reset validation error messages.
       *
       * @return array
       */
      protected function validationErrorMessages()
      {
          return [
              'password.regex' =&gt; 'The password must contain at least one uppercase, one lowercase, one number and one special(@!$#%...) character.'
                  ];
      }
  
      protected function resetPassword($user, $password)
      {
          $password = app('hash')-&gt;needsRehash($password) ? Hash::make($password) : $password;
  
          $user-&gt;forceFill([
              'password' =&gt; $password,
              'remember_token' =&gt; Str::random(60),
          ])-&gt;save();
  
          $this-&gt;guard()-&gt;login($user);
      }
  
      
      public function broker()
      {
          return Password::broker('members');
      }
  
      protected function guard()
      {
          return Auth::guard('web_member');
      }
  }
  </code></pre>
  <p>Please help thanks in advance.I am new to laravel please help.</p>