staff members,senderid, documents,bug fixes, etc
This commit is contained in:
@@ -13,6 +13,9 @@ class Client extends Model
|
||||
public function country_info(){
|
||||
return $this->hasOne('App\Models\Country', 'alpha_2_code', 'country');
|
||||
}
|
||||
public function country_flag_info(){
|
||||
return $this->hasOne('App\Models\CountryFlag', 'country', 'country');
|
||||
}
|
||||
public function payment_type_info(){
|
||||
return $this->hasOne('App\Models\PaymentType', 'id', 'pay_mode');
|
||||
}
|
||||
@@ -25,13 +28,13 @@ class Client extends Model
|
||||
return $this->hasMany('App\Models\MeetingReport', 'client', 'id');
|
||||
}
|
||||
public function auth_user_info(){
|
||||
return $this->hasOne('App\Models\Account', 'id', 'auth_user_id');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'auth_user_id');
|
||||
}
|
||||
public function created_by_info(){
|
||||
return $this->hasOne('App\Models\Account', 'id', 'created_by');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'created_by');
|
||||
}
|
||||
public function modified_by_info(){
|
||||
return $this->hasOne('App\Models\Account', 'id', 'last_modified_by');
|
||||
return $this->hasOne('App\Models\SystemUser', 'id', 'last_modified_by');
|
||||
}
|
||||
public function short_code_info(){
|
||||
return $this->hasMany('App\Models\ShortCode', 'client_id', 'id');
|
||||
|
||||
Reference in New Issue
Block a user