📅  最后修改于: 2022-03-11 14:54:04.505000             🧑  作者: Mango
public function products()
{
return $this->belongsToMany('\Duplicolor\Models\Product\Line', 'project_products', 'project_post_id', 'product_line_id')->withPivot('id');
}