SelectFilter with relationship help...

I am using the standalone Table builder in my Laravel app. I would like to add a drop-down filter where all the options are listed and come from the database. Here is what I have so far:
php
SelectFilter::make('type')
->multiple()
->relationship('type', 'name')
php
SelectFilter::make('type')
->multiple()
->relationship('type', 'name')
However, in the UI, I'm not given a drop-down list to choose from - I have a Search box. How do I change this to a drop-down?
1 Reply
awcodes
awcodes4mo ago
because it’s a type ahead select. When you use multiple it defaults to a non native select. You have to type to search the options. It might support preload() if you want to pre-populate it with options.
Want results from more Discord servers?
Add your server