mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 10:04:54 +08:00
Revert "fix search case sensitive with json column in spatie translatable"
This reverts commit 755e536fa2.
This commit is contained in:
+2
-2
@@ -117,13 +117,13 @@ class SpatieLaravelTranslatableContentDriver implements TranslatableContentDrive
|
||||
|
||||
$column = match ($databaseConnection->getDriverName()) {
|
||||
'pgsql' => "{$column}->>'{$this->activeLocale}'",
|
||||
default => "lower(json_extract({$column}, \"$.{$this->activeLocale}\"))",
|
||||
default => "json_extract({$column}, \"$.{$this->activeLocale}\")",
|
||||
};
|
||||
|
||||
return $query->{$whereClause}(
|
||||
generate_search_column_expression($column, $isCaseInsensitivityForced, $databaseConnection),
|
||||
'like',
|
||||
'%' . strtolower($search) . '%',
|
||||
"%{$search}%",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user