Skip to content

Commit

Permalink
Make discount name searchable (#2017)
Browse files Browse the repository at this point in the history
Currently the discount listing in the admin panel is unsearchable as
there is no indexer set up and none of the fields are searchable so the
database has nothing to do.

This PR adds searchable to the name field.
  • Loading branch information
ryanmitchell authored Nov 19, 2024
1 parent 4edc13d commit 6ec0b6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/admin/src/Filament/Resources/DiscountResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ protected static function getTableColumns(): array
\Lunar\Models\Discount::SCHEDULED => 'info',
}),
Tables\Columns\TextColumn::make('name')
->label(__('lunarpanel::discount.table.name.label')),
->label(__('lunarpanel::discount.table.name.label'))
->searchable(),
Tables\Columns\TextColumn::make('type')
->formatStateUsing(function ($state) {
return (new $state)->getName();
Expand Down

0 comments on commit 6ec0b6e

Please sign in to comment.