INA-6 | Add purchase order invitations relationship to the VendorContact.php
This commit is contained in:
parent
d1f9235cec
commit
426e8967d1
1 changed files with 4 additions and 0 deletions
|
|
@ -136,4 +136,8 @@ class VendorContact extends Authenticatable implements HasLocalePreference
|
|||
->withTrashed()
|
||||
->where('id', $this->decodePrimaryKey($value))->firstOrFail();
|
||||
}
|
||||
public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(PurchaseOrderInvitation::class);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue