我有一个organization
模型,broadcast
模型和一个带有额外broadcast_organization
列的organization_specific
数据透视。我想仅在{ {1}}是正确的,到目前为止,我所尝试的方法都没有奏效。
模型
organization_specific
广播更新政策
public function organizations()
{
return $this->belongsToMany('App\Models\Organization')
->withPivot(['organization_specific']);
}
public function broadcasts()
{
return $this->belongsToMany('App\Models\Broadcast')
->withPivot(['organization_specific']);
}