摘要: Orm::withCount(['relation as relation_sum' =>function($query){ $query->select(DB::raw("sum(amount) as relationsum")); }]) 阅读全文
posted @ 2021-11-03 10:25 jzfan 阅读(424) 评论(0) 推荐(0) 编辑