Xu ly giao dien San Pham
This commit is contained in:
@@ -21,7 +21,8 @@ class Customer extends Model
|
||||
public function contracts()
|
||||
{
|
||||
return $this->belongsToMany(Contract::class, 'contract_customers')
|
||||
->withPivot('role', 'transfer_order')
|
||||
->using(ContractCustomer::class)
|
||||
->withPivot('id', 'role', 'transfer_order')
|
||||
->withTimestamps();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user