在thinkphp6中,支持给关联统计指定统计属性名(类似于取别名)。 实例: 数据库表:Users表、profile表 Users表profile表 profile模型 Users模型 Users控制器 输出结果: