User.php 638 B

123456789101112131415161718192021222324252627
  1. <?php namespace App;
  2. use Illuminate\Auth\Authenticatable;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Auth\Passwords\CanResetPassword;
  5. use Illuminate\Contracts\Auth\User as UserContract;
  6. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  7. class User extends Model implements UserContract, CanResetPasswordContract {
  8. use Authenticatable, CanResetPassword;
  9. /**
  10. * The database table used by the model.
  11. *
  12. * @var string
  13. */
  14. protected $table = 'users';
  15. /**
  16. * The attributes excluded from the model's JSON form.
  17. *
  18. * @var array
  19. */
  20. protected $hidden = ['password', 'remember_token'];
  21. }