diff --git a/app/Models/Common/Company.php b/app/Models/Common/Company.php index 8a5662f1b..c983a9b2e 100644 --- a/app/Models/Common/Company.php +++ b/app/Models/Common/Company.php @@ -217,6 +217,11 @@ class Company extends Eloquent implements Ownable return $this->hasMany('App\Models\Module\ModuleHistory'); } + public function owner() + { + return $this->belongsTo('App\Models\Auth\User', 'id', 'created_by'); + } + public function reconciliations() { return $this->hasMany('App\Models\Banking\Reconciliation');