fixed ambiguous type

This commit is contained in:
denisdulici 2020-02-22 00:30:45 +03:00
parent 89a0c23c95
commit 4337eab13e
3 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class Transaction extends Model
return $query; return $query;
} }
return $query->whereIn('type', (array) $types); return $query->whereIn($this->table . '.type', (array) $types);
} }
/** /**

View File

@ -76,7 +76,7 @@ class Contact extends Model
return $query; return $query;
} }
return $query->whereIn('type', (array) $types); return $query->whereIn($this->table . '.type', (array) $types);
} }
public function scopeEmail($query, $email) public function scopeEmail($query, $email)

View File

@ -65,7 +65,7 @@ class Category extends Model
return $query; return $query;
} }
return $query->whereIn('type', (array) $types); return $query->whereIn($this->table . '.type', (array) $types);
} }
public function scopeName($query, $name) public function scopeName($query, $name)