Skip to content

Commit

Permalink
owner relationship for company
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jun 27, 2021
1 parent 9ad8780 commit 3cf475c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Common/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ public function module_histories()
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');
Expand Down

0 comments on commit 3cf475c

Please sign in to comment.