Fixed company owner relation issue.

This commit is contained in:
Cüneyt Şentürk 2022-01-05 18:20:19 +03:00
parent faa8eef8c4
commit c64ba2f18a

View File

@ -227,7 +227,7 @@ class Company extends Eloquent implements Ownable
public function owner() public function owner()
{ {
return $this->belongsTo('App\Models\Auth\User', 'id', 'created_by'); return $this->belongsTo('App\Models\Auth\User', 'created_by', 'id')->withDefault(['name' => trans('general.na')]);
} }
public function reconciliations() public function reconciliations()