Skip to content

Commit 9208c01

Browse files
kristofsergithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6e121e1 commit 9208c01

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Resources/PageResource.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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())
@@ -241,7 +242,7 @@ public static function getGloballySearchableAttributes(): array
241242
'content_blocks',
242243
'seo_title',
243244
'seo_description',
244-
'seo_keywords'
245+
'seo_keywords',
245246
];
246247
}
247248

@@ -261,7 +262,7 @@ public static function getGlobalSearchResultDetails(Model $record): array
261262

262263
return [
263264
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,
265266
];
266267
}
267268
}

0 commit comments

Comments
 (0)