Table column searchable - how to show user which columns are searchable

In the table builder, you can make columns searchable, which is great. For example:

TextColumn::make('id'),
TextColumn::make('name')->searchable(),
TextColumn::make('title')->searchable(),
TextColumn::make('description')


So the
name
and title columns are searchable, but not the
id
and
description
column.

From an end user perspective: how to know, which fields/columns are searchable and which not? When I enter for example 12, without any extra knowledge / information, I would expect to get the row with the id 12 or at least with 12 in it.

Why not adding the names (labels) of the columns as a placeholder in the searchbox. Or mark the searchable columns somehow ?
Solution
GitHub
Changes have been thoroughly tested to not break existing functionality.
Visual changes are explained in the PR description using a screenshot/recording of before and after.

TLDR:
This PR adds th...
Was this page helpful?