belongsTo(Product::class); } // 1 Hợp đồng có thể có nhiều Khách hàng (Đồng sở hữu) public function customers() { return $this->belongsToMany(Customer::class, 'contract_customers')->withPivot('role', 'transfer_order')->withTimestamps(); } }