Merge remote-tracking branch 'origin/master' into Development

This commit is contained in:
Simon Pocrnjič
2026-01-05 20:45:18 +01:00
4 changed files with 19 additions and 3 deletions
+8
View File
@@ -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')