public function filter(string $column, $value, bool $negate = false) : self
    {
        $sql = $this->filterSQL($column, $value, $negate);
        return strlen($sql[0]) ? $this->where($sql[0], $sql[1]) : $this;
    }
public function filter(string $column, $value, bool $negate = false) : self
    {
        $sql = $this->filterSQL($column, $value, $negate);
        return strlen($sql[0]) ? $this->where($sql[0], $sql[1]) : $this;
    }
public function filter ( string $ column , $ value , bool $ negate = false ) : self { $ sql = $ this -> filterSQL ( $ column , $ value , $ negate ) ; return strlen ( $ sql [ 0 ] ) ? $ this -> where ( $ sql [ 0 ] , $ sql [ 1 ] ) : $ this ; }
Filter the results by a column and a value
@param  string $column  the column name to filter by (related columns can be used - for example: author.name)
@param  mixed  $value   a required value, array of values or range of values (range example: ['beg'=>1,'end'=>3])
@param  bool   $negate  optional boolean indicating that the filter should be negated
@return $this
Filter the results by a column and a value