User.php 610 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Auth\UserInterface;
  3. class User extends Eloquent implements UserInterface {
  4. /**
  5. * The database table used by the model.
  6. *
  7. * @var string
  8. */
  9. protected $table = 'users';
  10. /**
  11. * The attributes excluded from the model's JSON form.
  12. *
  13. * @var array
  14. */
  15. protected $hidden = array('password');
  16. /**
  17. * Get the unique identifier for the user.
  18. *
  19. * @return mixed
  20. */
  21. public function getAuthIdentifier()
  22. {
  23. return $this->getKey();
  24. }
  25. /**
  26. * Get the password for the user.
  27. *
  28. * @return string
  29. */
  30. public function getAuthPassword()
  31. {
  32. return $this->password;
  33. }
  34. }