Replies: 1 comment
-
is working very well and with "RAW" functions too. <?php
Column::make('Repositorio', 'name')->searchable(
function (Builder $query, $searchTerm) {
$query->orWhereraw('unaccent(name) ilike unaccent(\'%' . $searchTerm . '%\')');
}
)->sortable(), |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is the correct form to allow ignore case search for postgresql ?
Column::make('Nombre', 'name')->sortable()->searchable(function (Builder $query, $searchTerm) { $query->orWhere('name', 'ilike', '%' . $searchTerm . '%'); }),
phpBeta Was this translation helpful? Give feedback.
All reactions