Skip to content

Commit

Permalink
Make Product name and SKU searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Oct 9, 2024
1 parent 3d66fb2 commit 2b3cc89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/admin/src/Filament/Resources/ProductResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ public static function getNameTableColumn(): Tables\Columns\Column
->attributeData()
->limitedTooltip()
->limit(50)
->label(__('lunarpanel::product.table.name.label'));
->label(__('lunarpanel::product.table.name.label'))
->searchable();
}

public static function getSkuTableColumn(): Tables\Columns\Column
Expand All @@ -323,7 +324,8 @@ public static function getSkuTableColumn(): Tables\Columns\Column
})
->listWithLineBreaks()
->limitList(1)
->toggleable();
->toggleable()
->searchable();
}

public static function getDefaultRelations(): array
Expand Down

0 comments on commit 2b3cc89

Please sign in to comment.