Set a "where" constraint on the query.

@param  string|\Closure  $column
@param  array|string|null  $value
@return $this
487008
public function where($column, $value = null)
    {
        if (is_array($value)) {
            return $this->whereIn($column, $value);
        }

        if ($column instanceof Closure) {
            return $this->using($column);
        }

        $this->wheres[] = compact('column', 'value');

        return $this;
    }
1231647
public function whereTime($column, $operator, $value = null)
    {
        $this->wConditions()->time(...func_get_args());

        return $this;
    }
646712
public function set(string $column, $value)
    {
        if (method_exists($this, $this->getAttributeSetMethod($column))) {
            foreach ($this as $row) {
                $row[$column] = $value;
            }

            return $this;
        }

        $this->validateFillableColumn($column);

        foreach (array_keys($this->rows) as $key) {
            $this->setInRow($key, $column, $value);
        }
        unset($row);

        return $this;
    }
1113277
public function related($relation, $column, $operator = null, $value = null, $boolean = 'and')
    {
        if ($column instanceof \Closure) {
            return $this->addRelated($relation, $column);
        }

        // If there is no value it is a where = ? query and we set the appropriate params
        if ($value === null) {
            $value = $operator;
            $operator = '=';
        }

        return $this->addRelated($relation, function ($query) use ($column, $operator, $value, $boolean) {
            return $query->where($column, $operator, $value, $boolean);
        });
    }
232201
public function orHavingDay($column, $operator, $value = null)
    {
        $this->hConditions()->orDay(...func_get_args());

        return $this;
    }
109307
public function andWhere($column, $operator, $value = null)
    {
        $this->andWheres[] = new Where($column, $operator, $value, 'AND');

        return $this;
    }
575342
public function where($column, String $value = NULL, String $logical = 'and')
    {
        $this->settings['where']       = true;
        $this->settings['whereValue']  = $value;
        $this->settings['whereColumn'] = $column;

        Singleton::class('ZN\Database\DB')->where($column, $value, $logical);

        return $this;
    }
1060188
function whereNot( $column, $value = null ) {

        $clone = clone $this;

        // conditions in key-value array
        if ( is_array( $column ) ) {

            foreach ( $column as $c => $params ) {

                $clone = $clone->whereNot( $c, $params );

            }

            return $clone;

        }

        $clone->where[] = $this->db->isNot( $column, $value );

        return $clone;

    }
226808
public function andHaving($column, Closure $value = null): self
    {
        return $this->addCondition($column, $value, 'AND');
    }
284555
public function orHaving($column, Closure $value = null): self
    {
        $this->have->orHaving($column, $value);
        return $this;
    }
1265456
public function gt($column, $value = null)
    {
        return $this->where($column, $value, Cmp::GT);
    }
798303
public function whereHas($column, $value = true)
    {
        if (isset($this->defaultValues[$this->casts[$column]])) {
            $default = $this->defaultValues[$this->casts[$column]];
        } else {
            $default = '';
        }
        $op = $value ? '!=' : '=';
        $this->andWhere($column . ' ' . $op . ' \'' . $default . '\'');

        return $this;
    }
834001
public function and_where($column, $op = null, $value = null)
	{
		if($column instanceof \Closure)
		{
			$this->and_where_open();
			$column($this);
			$this->and_where_close();
			return $this;
		}

		if (is_array($column))
		{
			foreach ($column as $key => $val)
			{
				if (is_array($val))
				{
					$this->and_where($val[0], $val[1], $val[2]);
				}
				else
				{
					$this->and_where($key, '=', $val);
				}
			}
		}
		else
		{
			if(func_num_args() === 2)
			{
				$value = $op;
				$op = '=';
			}
			$this->_where[] = array('AND' => array($column, $op, $value));
		}

		return $this;
	}
485200
public function where($where = null, $value = null)
        {
            if (Arrays::is($this->where)) {
                $this->whereKey = count($this->where) + 1;
            }

            $this->where[$this->whereKey]['attr'] = $where;
            $this->where[$this->whereKey]['value'] = $value;

            return $this;
        }
1086321
private function constraint($method, $column, $operator, $value, $filter)
    {
        if (!$this->queryBuilder->isFilterable($filter, $value)) {
            return $this;
        }

        call_user_func(array($this->queryBuilder, $method), $column, $operator, $this->createUniqPlaceholder($value));
        return $this;
    }
298217
public function setDefault($column, $value)
    {
        $defaults = $this->getDefaults();

        if(isset($defaults[$column])) {
            $this->_defaults[$column] = $value;
        }

        return $this;
    }
456341
public function eq($column, $value = null)
    {
        return $this->where($column, $value, Cmp::EQ);
    }