Skip to content

Commit 5747ad9

Browse files
committed
Added client relation to person model
1 parent 6a991b2 commit 5747ad9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Models/Person.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,9 @@ public function xeroPerson()
181181
{
182182
return $this->hasOne(\VentureDrake\LaravelCrm\Models\XeroPerson::class);
183183
}
184+
185+
public function client()
186+
{
187+
return $this->morphOne(\VentureDrake\LaravelCrm\Models\Client::class, 'clientable');
188+
}
184189
}

0 commit comments

Comments
 (0)