@foreach ($despatchitems as $despatchitem)
<tr>
<td>{{$despatchitem->tag_id}}</td>
<td>{{$despatchitem->qty}}</td>
<td>{{$despatchitem->description}}</td>
</tr>
@endforeach
我需要标签名称而不是tag_id,我怎样才能连接到标签表并获取标签名称
DespatchItem模型和标签模型之间没有直接关系
@foreach ($despatchitems as $despatchitem)
<tr>
<td>{{$despatchitem->tag_id}}</td>
<td>{{$despatchitem->qty}}</td>
<td>{{$despatchitem->description}}</td>
</tr>
@endforeach
我需要标签名称而不是tag_id,我怎样才能连接到标签表并获取标签名称
DespatchItem模型和标签模型之间没有直接关系