Merge remote-tracking branch 'origin/master' into Development
This commit is contained in:
@@ -112,6 +112,14 @@ public function addresses(): HasMany
|
||||
->orderBy('id');
|
||||
}
|
||||
|
||||
public function address(): HasOne
|
||||
{
|
||||
return $this->hasOne(\App\Models\Person\PersonAddress::class)
|
||||
->with(['type'])
|
||||
->where('active', '=', 1)
|
||||
->oldestOfMany('id');
|
||||
}
|
||||
|
||||
public function emails(): HasMany
|
||||
{
|
||||
return $this->hasMany(\App\Models\Email::class, 'person_id')
|
||||
|
||||
Reference in New Issue
Block a user