UserInfoModel.php 901 B

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