|
@@ -85,6 +85,11 @@ class Client extends Model
|
|
|
return $this->hasOne(Pro::class, 'id', 'default_na_pro_id');
|
|
|
}
|
|
|
|
|
|
+ public function creator()
|
|
|
+ {
|
|
|
+ return $this->hasOne(Pro::class, 'id', 'created_by_pro_id');
|
|
|
+ }
|
|
|
+
|
|
|
public function prosInMeetingWith()
|
|
|
{
|
|
|
return Pro::where('in_meeting_with_client_id', $this->id)->get();
|