Password.php 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static string sendResetLink(array $credentials)
  5. * @method static mixed reset(array $credentials, \Closure $callback)
  6. * @method static void validator(\Closure $callback)
  7. * @method static bool validateNewPassword(array $credentials)
  8. *
  9. * @see \Illuminate\Auth\Passwords\PasswordBroker
  10. */
  11. class Password extends Facade
  12. {
  13. /**
  14. * Constant representing a successfully sent reminder.
  15. *
  16. * @var string
  17. */
  18. const RESET_LINK_SENT = 'passwords.sent';
  19. /**
  20. * Constant representing a successfully reset password.
  21. *
  22. * @var string
  23. */
  24. const PASSWORD_RESET = 'passwords.reset';
  25. /**
  26. * Constant representing the user not found response.
  27. *
  28. * @var string
  29. */
  30. const INVALID_USER = 'passwords.user';
  31. /**
  32. * Constant representing an invalid password.
  33. *
  34. * @var string
  35. */
  36. const INVALID_PASSWORD = 'passwords.password';
  37. /**
  38. * Constant representing an invalid token.
  39. *
  40. * @var string
  41. */
  42. const INVALID_TOKEN = 'passwords.token';
  43. /**
  44. * Get the registered name of the component.
  45. *
  46. * @return string
  47. */
  48. protected static function getFacadeAccessor()
  49. {
  50. return 'auth.password';
  51. }
  52. }