We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd81a09 commit 01e23c1Copy full SHA for 01e23c1
src/Resources/PageResource.php
@@ -188,8 +188,12 @@ public static function table(Table $table): Table
188
return $table
189
->columns([
190
TitleColumn::create()
191
- ->searchable(query: function ($query, $search) {
+ ->searchable(query: function ($query, $search, $livewire) {
192
$locale = app()->getLocale();
193
+ if (method_exists($livewire, 'getActiveFormsLocale')) {
194
+ $locale = $livewire->getActiveFormsLocale();
195
+ }
196
+
197
$search = strtolower($search);
198
199
return $query->whereRaw("LOWER(title->>'$.{$locale}') LIKE ?", ["%{$search}%"]);
0 commit comments