filters on same relationship
hi all, i've 2 Select filter on same relationship like this:
But the first SelectFilter "eye_color" isn't showed.
how can i show the filter?
2 Replies
Hi ocram82,
I believe select filters need to have distinct names provided to their
make()
method as internally data of the first Select Filter called phisycalProfile
will be overwritten by the second one.
best is to call them based on what data they should hold, then they will both display:
you can then specify in the select filters relationship they should apply to by using ->relationship('phisycalProfile')
the relationship method will also require second parameter which is the property of relationship you want to filter by:
->relationship('phisycalProfile', 'eye_color')
for example.yes it is, i solved creating 2 custom filters