public function where($column, $value = null, $logic = 'first')
{
if ($column instanceof Closure) {
return $this->whereNested($column, $logic);
}
$type = 'Basic';
if ('first' == $logic) {
if (is_null($this->first)) {
$this->first = true;
} else {
$logic = '$and';
}
}
$this->wheres[] = compact('type', 'column', 'value', 'logic');
return $this;
}