public function filterBy($column, $value = null)
    {
        $value = in_array($value, ['true', 'false']) ? ($value === 'false' ? false : true) : $value;

        is_bool($value)
            ? $this->instance->where($column, $value)
            : $this->instance->where($column, $this->getLikeOperator(), "%$value%");

        return $this;
    }
public function filterBy($column, $value = null)
    {
        $value = in_array($value, ['true', 'false']) ? ($value === 'false' ? false : true) : $value;

        is_bool($value)
            ? $this->instance->where($column, $value)
            : $this->instance->where($column, $this->getLikeOperator(), "%$value%");

        return $this;
    }
public function filterBy ( $ column , $ value = null ) { $ value = in_array ( $ value , [ 'true' , 'false' ] ) ? ( $ value === 'false' ? false : true ) : $ value ; is_bool ( $ value ) ? $ this -> instance -> where ( $ column , $ value ) : $ this -> instance -> where ( $ column , $ this -> getLikeOperator ( ) , "%$value%" ) ; return $ this ; }
Append column filter to query builder.

@param string|array $column
@param string       $value

@return $this
Append column filter to query builder .