0
我有3个表,我正在尝试通过,并且很难通过Eloquent连接来连接它们。Laravel/Eloquent - 查询表问题
字符表
profileID (PK)
字符齿轮表
profileId (PK)
qualityId (FK)
质量查找表
id (PK)
name
我能够访问字符齿轮查找与我的性格型号如下:
public function gear()
{
return $this->hasMany('App\Models\CharacterGear', 'profileId')->where('gearSet', '=', '0');
}
我如何查找工作,这样我可以从质量查找表获得质量名字绑到上面显示的gear()
?
如果您需要更多信息,请让我知道!