owner relationship for company
This commit is contained in:
parent
9ad8780741
commit
3cf475c698
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user