Password.php 1.8 KB

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