我有三个桌子
"Aktes" has Many "lvs"
"lvs" has Many "Ms"
"Ms"
我希望能够在AkteController中搜索Ms-> attribute。
我在可搜索数组中添加了lvs:
//Model Akte
public function toSearchableArray()
{
$arr = $this->toArray();
$arr['lvs'] = $this->lvs()->toSearchableArray();
return $arr;
}
是否可以将lvs.M添加到Akte SeachableArray?