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;
    }
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;
    }
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 ; }
Set a "where" constraint on the query.

@param  string|\Closure  $column
@param  array|string|null  $value
@return $this
Set a where constraint on the query .