UserInfoModel.php 905 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Foundation\Auth\User as Authenticatable;
  4. /**
  5. * @description 用户表
  6. * @author system;
  7. * @version 1.0
  8. * @date 2017-05-30 12:16:56
  9. *
  10. */
  11. class UserInfoModel extends Authenticatable
  12. {
  13. /**
  14. * 数据表名
  15. *
  16. * @var string
  17. *
  18. */
  19. protected $table = 'user_info';
  20. /**
  21. * 主键
  22. */
  23. protected $primaryKey = 'id';
  24. //分页
  25. protected $perPage = PAGE_NUMS;
  26. /**
  27. * 可以被集体附值的表的字段
  28. *
  29. * @var string
  30. */
  31. protected $fillable = [
  32. 'password',
  33. 'email',
  34. 'area',
  35. 'name',
  36. 'vip',
  37. 'level',
  38. 'idcard',
  39. 'contact',
  40. 'prize',
  41. 'openid',
  42. 'remember_token',
  43. 'idcard_positive',
  44. 'idcard_back',
  45. 'username',
  46. 'real_name',
  47. 'email',
  48. 'mobile'
  49. ];
  50. }