Table SelectFilter
I know I am missing something simple here, so just need a second set of eyes.
The
type
is just open
or closed
. Right now it doesnt filter by it and for some reason it lists 10 options in the select with half being open and half closed. Filtering by status name works fine.Solution:Jump to solution
I ended up doing ```php
SelectFilter::make('type')
->label('Status Type')
->options([
'open' => 'Open',...
4 Replies
Solution
I ended up doing
I think you figured out, that the original code didn't work, because it's still filtering by ID and
type
is only for displayso would there even be a way to do it using the relationship method?
I don't think so. I mean you could use
relationship()
for the options, but need to overwrite the query