关联表中间表数据pivot 不能获取

@foreach ($products as $key => $v)
{{ $v->description }}
@foreach ($v->colors as $c)
{{ $c->pivot->colors_id }}
@endforeach
@endforeach
{!! $products->render() !!}

product
color_product
color

manytomany
查不到中间表的信息...求教
已邀请:

习惯把你宠坏

赞同来自:

你要把你关联方法贴出来

要回复问题请先登录注册