Authenticatable.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Illuminate\Contracts\Auth;
  3. interface Authenticatable
  4. {
  5. /**
  6. * Get the name of the unique identifier for the user.
  7. *
  8. * @return string
  9. */
  10. public function getAuthIdentifierName();
  11. /**
  12. * Get the unique identifier for the user.
  13. *
  14. * @return mixed
  15. */
  16. public function getAuthIdentifier();
  17. /**
  18. * Get the name of the password attribute for the user.
  19. *
  20. * @return string
  21. */
  22. public function getAuthPasswordName();
  23. /**
  24. * Get the password for the user.
  25. *
  26. * @return string
  27. */
  28. public function getAuthPassword();
  29. /**
  30. * Get the token value for the "remember me" session.
  31. *
  32. * @return string
  33. */
  34. public function getRememberToken();
  35. /**
  36. * Set the token value for the "remember me" session.
  37. *
  38. * @param string $value
  39. * @return void
  40. */
  41. public function setRememberToken($value);
  42. /**
  43. * Get the column name for the "remember me" token.
  44. *
  45. * @return string
  46. */
  47. public function getRememberTokenName();
  48. }