File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -186,11 +186,12 @@ public static function table(Table $table): Table
186
186
return $ table
187
187
->columns ([
188
188
TitleColumn::create ()
189
- ->searchable (query: function ($ query , $ search ) {
190
- $ locale = app ()->getLocale ();
191
- $ search = strtolower ($ search );
192
- return $ query ->whereRaw ("LOWER(title->>'$. {$ locale }') LIKE ? " , ["% {$ search }% " ]);
193
- }),
189
+ ->searchable (query: function ($ query , $ search ) {
190
+ $ locale = app ()->getLocale ();
191
+ $ search = strtolower ($ search );
192
+
193
+ return $ query ->whereRaw ("LOWER(title->>'$. {$ locale }') LIKE ? " , ["% {$ search }% " ]);
194
+ }),
194
195
TextColumn::make ('created_at ' )
195
196
->label (flexiblePagesTrans ('pages.table.created_at_col ' ))
196
197
->dateTime (FilamentFlexibleBlocksConfig::getPublishingDateFormatting ())
@@ -241,7 +242,7 @@ public static function getGloballySearchableAttributes(): array
241
242
'content_blocks ' ,
242
243
'seo_title ' ,
243
244
'seo_description ' ,
244
- 'seo_keywords '
245
+ 'seo_keywords ' ,
245
246
];
246
247
}
247
248
@@ -261,7 +262,7 @@ public static function getGlobalSearchResultDetails(Model $record): array
261
262
262
263
return [
263
264
trans ('filament-flexible-content-blocks::filament-flexible-content-blocks.form_component.intro_lbl ' ) => Str::limit (strip_tags ($ record ->intro )),
264
- trans ('filament-flexible-content-blocks::filament-flexible-content-blocks.columns.is_published ' ) => $ published
265
+ trans ('filament-flexible-content-blocks::filament-flexible-content-blocks.columns.is_published ' ) => $ published,
265
266
];
266
267
}
267
268
}
You can’t perform that action at this time.
0 commit comments