CanResetPassword.php 602B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Illuminate\Auth\Passwords;
  3. use Illuminate\Auth\Notifications\ResetPassword as ResetPasswordNotification;
  4. trait CanResetPassword
  5. {
  6. /**
  7. * Get the e-mail address where password reset links are sent.
  8. *
  9. * @return string
  10. */
  11. public function getEmailForPasswordReset()
  12. {
  13. return $this->email;
  14. }
  15. /**
  16. * Send the password reset notification.
  17. *
  18. * @param string $token
  19. * @return void
  20. */
  21. public function sendPasswordResetNotification($token)
  22. {
  23. $this->notify(new ResetPasswordNotification($token));
  24. }
  25. }