refactor: rename contact method to contactPerson to avoid default conflicts

This commit is contained in:
Veronika Fehérvíziová
2025-12-02 22:51:53 +01:00
parent 01aae85efc
commit a9ac8a2735

View File

@@ -44,7 +44,7 @@ class Company extends Model
/** /**
* Get the contact person (user) for the company. * Get the contact person (user) for the company.
*/ */
public function contact() public function contactPerson()
{ {
return $this->belongsTo(User::class, 'contact'); return $this->belongsTo(User::class, 'contact');
} }