User.php 613 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App;
  3. use Illuminate\Foundation\Auth\User as Authenticatable;
  4. class User extends Authenticatable
  5. {
  6. /**
  7. * The attributes that are mass assignable.
  8. *
  9. * @var array
  10. */
  11. protected $table = 'users';
  12. protected $fillable =
  13. ['id', 'openid', 'unionid', 'distribution_channel_id', 'head_img',
  14. 'register_ip', 'send_order_id', 'balance', 'sex', 'country', 'city',
  15. 'province', 'nickname', 'charge_balance', 'reward_balance', 'is_new'
  16. ];
  17. /**
  18. * The attributes that should be hidden for arrays.
  19. *
  20. * @var array
  21. */
  22. }