mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:17:32 -05:00 
			
		
		
		
	Slight modification for query of company owner
This commit is contained in:
		
							parent
							
								
									406b21625c
								
							
						
					
					
						commit
						85b58ec8df
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user