Format state of select filter
I have a select filter with a relationship:
SelectFilter::make('employee')->relationship('employee', 'name')
. I need to modify de label of each option to show ID + name instead of the name only. formatStateUsing()
is not available here.4 Replies
?
Solution
Not working when you have a relationship() method, but thanks!
Working! Thanks a lot!
Didn't find in the doc, I was searching on "Table Builder" -> "Filters".