Skip to content

Commit

Permalink
made search case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
williamoliveira committed Apr 18, 2016
1 parent 65cfda9 commit 05d943b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArrayBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected function buildTextSearchWhere(&$queryBuilder, $field, $value)
$value = preg_replace('/\s\s+/', ' ', trim($value));
$value = '%' . str_replace(' ', '%', $value) . '%';

$queryBuilder->where($field, 'like', $value);
$queryBuilder->where($field, 'ilike', $value);
}

/**
Expand Down Expand Up @@ -214,4 +214,4 @@ protected function parseOperator($operator)

return strtolower($operator);
}
}
}

0 comments on commit 05d943b

Please sign in to comment.