mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-28 08:54:19 +00:00
update: company model.
This commit is contained in:
@@ -34,13 +34,12 @@ class Company extends AbstractModel implements Documentable, Contactable
|
||||
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
|
||||
/**
|
||||
* @return HasMany
|
||||
* @return MorphMany
|
||||
*/
|
||||
public function addresses(): HasMany
|
||||
public function addresses(): morphMany
|
||||
{
|
||||
return $this->HasMany(Address::class, 'company_id');
|
||||
return $this->morphMany(Address::class, 'owner');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user