Fixed company owner relation issue.
This commit is contained in:
parent
faa8eef8c4
commit
c64ba2f18a
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user