Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jmrufus's avatar

Multiple selection filter with relationship in FilamentPhp

Hi guys.

I'm faced with the following dilemma. I have created a select type filter and I would like it to be multiple(), that is, to be able to select multiple values.

The current filter is the following: SelectFilter::make('tutors') ->relationship('tutor', 'name') ->label('Tutor'),

According to the documentation, if we add the multiple() method, we should be able to select multiple options, but it doesn't work.

Could someone tell me how to do it?

Thanks

0 likes
4 replies
Sinnbeck's avatar

What do you mean with "doesnt work". You get an error? its still single select? Something else?

jmrufus's avatar

Hi Sinnbeck.

It doesn't show any errors. It just doesn't load the data from the select and instead shows you a search box for you to enter the value you want to search for, even though it doesn't indicate that the select is searchable.

jmrufus's avatar

Perfect. Now it works.

Thank you very much for the help. Best regards

Please or to participate in this conversation.