Slight modification for query of company owner
This commit is contained in:
parent
406b21625c
commit
85b58ec8df
1 changed files with 2 additions and 1 deletions
|
|
@ -476,7 +476,8 @@ class Company extends BaseModel
|
|||
|
||||
public function owner()
|
||||
{
|
||||
return $this->company_users->where('is_owner', true)->first()->user;
|
||||
return $this->company_users()->withTrashed()->where('is_owner', true)->first()->user;
|
||||
//return $this->company_users->where('is_owner', true)->first()->user;
|
||||
}
|
||||
|
||||
public function resolveRouteBinding($value, $field = null)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue