© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
sette

Multiple Select with relationship in Builder Block is not working

Hi guys! I was wondering if the Select with many to many relationship should work, without any special configuration, inside a builder block, because it's not saving the relation in the connection table. Here is the code:
Builder\Block::make('audio')
    ->schema([
    // …

        Select::make('voice_id')
            ->searchable()
            ->multiple()
            ->relationship('voices', 'last_name')
            ->createOptionForm([
                Forms\Components\Grid::make(2)
                    ->schema([
                        Forms\Components\TextInput::make('first_name')
                            ->required(),

                        Forms\Components\TextInput::make('last_name')
                            ->required(),
                    ])
            ]),
    ])
Builder\Block::make('audio')
    ->schema([
    // …

        Select::make('voice_id')
            ->searchable()
            ->multiple()
            ->relationship('voices', 'last_name')
            ->createOptionForm([
                Forms\Components\Grid::make(2)
                    ->schema([
                        Forms\Components\TextInput::make('first_name')
                            ->required(),

                        Forms\Components\TextInput::make('last_name')
                            ->required(),
                    ])
            ]),
    ])

I would really appreciate some help as I'm stuck here! Thank you!!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

select->('multiple') not working in form builder
FilamentFFilament / ❓┊help
3y ago
multiple() is not working in form select
FilamentFFilament / ❓┊help
2y ago
Multiple Select with BelongsToMany relationship
FilamentFFilament / ❓┊help
3y ago
Select Multiple with relationship, data not showing in handleRecordCreation
FilamentFFilament / ❓┊help
3y ago