thinkphp5 模型忽略不需要的字段 class Users extends Model{ //自动过滤掉不存在的字段 protected $field = true; }//控制器添加 $add = $user->allowField(true)->save($data);