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

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