- 博客(1)
- 收藏
- 关注
原创 Tp6 五表联查
user模型:protected $table='login';protected $pk='id';public function getrole(){ return $this->belongsToMany(role::class,'u_r','role_id','id');}public function show($name){ return $this->where('name',$name)->with('getrole.get')->f
2022-03-13 22:57:45
709
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人