UserInfoModel.php 774 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\SoftDeletes;
  4. use Illuminate\Foundation\Auth\User as Authenticatable;
  5. /**
  6. * @description 用户表
  7. * @author system;
  8. * @version 1.0
  9. * @date 2017-05-30 12:16:56
  10. *
  11. */
  12. class UserInfoModel extends Authenticatable
  13. {
  14. use SoftDeletes;
  15. /**
  16. * 数据表名
  17. *
  18. * @var string
  19. *
  20. */
  21. protected $table = 'user_info';
  22. /**
  23. * 主键
  24. */
  25. protected $primaryKey = 'id';
  26. //分页
  27. protected $perPage = PAGE_NUMS;
  28. /**
  29. * 可以被集体附值的表的字段
  30. *
  31. * @var string
  32. */
  33. protected $fillable = [
  34. 'nickname',
  35. 'openid',
  36. 'mobile',
  37. 'avatar',
  38. 'lost_login_time',
  39. 'remember_token'
  40. ];
  41. }