User.php 743 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Http\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * 用户信息
  6. * Class User
  7. * @package App\Http\Models
  8. */
  9. class User extends Model
  10. {
  11. protected $table = 'user';
  12. protected $primaryKey = 'id';
  13. protected $fillable = [
  14. 'username',
  15. 'password',
  16. 'port',
  17. 'passwd',
  18. 'transfer_enable',
  19. 'u',
  20. 'd',
  21. 't',
  22. 'enable',
  23. 'method',
  24. 'custom_method',
  25. 'protocol',
  26. 'protocol_param',
  27. 'obfs',
  28. 'obfs_param',
  29. 'wechat',
  30. 'qq',
  31. 'usage',
  32. 'pay_way',
  33. 'balance',
  34. 'enable_time',
  35. 'expire_time',
  36. 'remark',
  37. 'is_admin',
  38. 'reg_ip'
  39. ];
  40. }