多对多查询

浏览:590 发布日期:2019/05/14 分类:ThinkPHP5专区
用户表 user
角色表 role $builder = User::with('roles', function($q) {
            $q->where('role_id', 1);
        })->select();
根据role id 查询用户表,并不能实现啊
最佳答案
评论( 相关
后面还有条评论,点击查看>>