INA-6 | Add purchase order invitations relationship to the VendorContact.php

This commit is contained in:
Nikola Cirkovic 2022-06-05 04:40:48 +02:00
parent d1f9235cec
commit 426e8967d1

View File

@ -136,4 +136,8 @@ class VendorContact extends Authenticatable implements HasLocalePreference
->withTrashed() ->withTrashed()
->where('id', $this->decodePrimaryKey($value))->firstOrFail(); ->where('id', $this->decodePrimaryKey($value))->firstOrFail();
} }
public function purchase_order_invitations(): \Illuminate\Database\Eloquent\Relations\HasMany
{
return $this->hasMany(PurchaseOrderInvitation::class);
}
} }