File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -186,11 +186,12 @@ public static function table(Table $table): Table
186186 return $ table
187187 ->columns ([
188188 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+ }),
194195 TextColumn::make ('created_at ' )
195196 ->label (flexiblePagesTrans ('pages.table.created_at_col ' ))
196197 ->dateTime (FilamentFlexibleBlocksConfig::getPublishingDateFormatting ())
@@ -263,7 +264,7 @@ public static function getGlobalSearchResultDetails(Model $record): array
263264
264265 return [
265266 trans ('filament-flexible-content-blocks::filament-flexible-content-blocks.form_component.intro_lbl ' ) => Str::limit (strip_tags ($ record ->intro )),
266- trans ('filament-flexible-content-blocks::filament-flexible-content-blocks.columns.is_published ' ) => $ published
267+ trans ('filament-flexible-content-blocks::filament-flexible-content-blocks.columns.is_published ' ) => $ published,
267268 ];
268269 }
269270}
You can’t perform that action at this time.
0 commit comments