Change the option title in a SelectFilter relationship

I have a simple table filter like this:
SelectFilter::make('group')
->relationship('group', 'name'),
SelectFilter::make('group')
->relationship('group', 'name'),
https://filamentphp.com/docs/3.x/tables/filters#relationship-select-filters I don't see it outlined in the docs, but is it possible to change the way the options are generated? For example, it shows the name, but I'd like it to be:
<option value="">{{ $id }} - {{ $name }}</option>
<option value="">{{ $id }} - {{ $name }}</option>
2 Replies
ericlbarnes
ericlbarnes11mo ago
Ahh sweet! I totally missed that in the docs. 😬