User.php 843 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. use Illuminate\Auth\UserInterface;
  3. use Illuminate\Auth\Reminders\RemindableInterface;
  4. class User extends Eloquent implements UserInterface, RemindableInterface {
  5. /**
  6. * The database table used by the model.
  7. *
  8. * @var string
  9. */
  10. protected $table = 'users';
  11. /**
  12. * The attributes excluded from the model's JSON form.
  13. *
  14. * @var array
  15. */
  16. protected $hidden = array('password');
  17. /**
  18. * Get the unique identifier for the user.
  19. *
  20. * @return mixed
  21. */
  22. public function getAuthIdentifier()
  23. {
  24. return $this->getKey();
  25. }
  26. /**
  27. * Get the password for the user.
  28. *
  29. * @return string
  30. */
  31. public function getAuthPassword()
  32. {
  33. return $this->password;
  34. }
  35. /**
  36. * Get the e-mail address where password reminders are sent.
  37. *
  38. * @return string
  39. */
  40. public function getReminderEmail()
  41. {
  42. return $this->email;
  43. }
  44. }