title: Laravel 6: How to override sendPasswordResetNotification function
body: <p>I've been working on resetting password but using a custom notification instead of Laravel notification. This is the file <code>vendor\laravel\framework\src\Illuminate\Auth\Passwords\CanResetPassword.php</code></p>
  <pre><code> public function sendPasswordResetNotification($token)
  {
      //use custom notification to change the url instead of modifying the original class
      //$this-&gt;notify(new ResetPasswordNotification($token));
      $this-&gt;notify(new CustomResetPassword($token));
  }
  </code></pre>
  <p>That's ow I call it in a service class</p>
  <pre><code>$reset_password_status = Password::reset($credentials, function ($user, $password) {
      $user-&gt;password = $password;
      $user-&gt;save();
  });
  
  if ($reset_password_status == Password::INVALID_TOKEN) {
      return $this-&gt;returnError-&gt;error(&quot;Invalid token provided&quot;);
  }
  </code></pre>
  <p>But the problem is building the project online is done automatically and run composer install every time and can't just upload the change manually so I'm looking for a way to override this function in my code to reset the password instead of editing <code>CanResetPassword.php</code> file which exists in the vendor folder</p>