protected static function applyFilter($query, $column, $searchValue)
    {
        if ($methodName = self::hasCustomSearch($column)) {
            return self::$class::$methodName($query, $searchValue);
        }

        if (isRelationColumn($column)) {
            return self::applyRelationFilter($query, $column, $searchValue);
        }

        $searchValue = '%'.$searchValue.'%';

        return $query->orWhere($column, 'like', "$searchValue");
    }
protected static function applyFilter($query, $column, $searchValue)
    {
        if ($methodName = self::hasCustomSearch($column)) {
            return self::$class::$methodName($query, $searchValue);
        }

        if (isRelationColumn($column)) {
            return self::applyRelationFilter($query, $column, $searchValue);
        }

        $searchValue = '%'.$searchValue.'%';

        return $query->orWhere($column, 'like', "$searchValue");
    }
protected static function applyFilter ( $ query , $ column , $ searchValue ) { if ( $ methodName = self :: hasCustomSearch ( $ column ) ) { return self :: $ class :: $ methodName ( $ query , $ searchValue ) ; } if ( isRelationColumn ( $ column ) ) { return self :: applyRelationFilter ( $ query , $ column , $ searchValue ) ; } $ searchValue = '%' . $ searchValue . '%' ; return $ query -> orWhere ( $ column , 'like' , "$searchValue" ) ; }
Applies filter condition for the table column.

@param \Freshbitsweb\Laratables\QueryHandler Query object
@param string Column name
@param string Search string

@return \Freshbitsweb\Laratables\QueryHandler Query object
Applies filter condition for the table column .