© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
7 replies
Groli

Issue with Select field and relationships

Hello,

After upgrading to v4 some functionality broke and I'm not able find the issue with migration docs...

It concerns this Select field in my form:
Select::make('course_id')
                    ->label('Course')
                    ->relationship('course')
                    ->getOptionLabelFromRecordUsing(fn (Course $record) => CourseQuery::formatTitle($record))
                    ->getSearchResultsUsing(CourseQuery::search(...))
                    ->searchable()
                    ->visible(fn (Get $get) => $get('room_type_id') == 2),
Select::make('course_id')
                    ->label('Course')
                    ->relationship('course')
                    ->getOptionLabelFromRecordUsing(fn (Course $record) => CourseQuery::formatTitle($record))
                    ->getSearchResultsUsing(CourseQuery::search(...))
                    ->searchable()
                    ->visible(fn (Get $get) => $get('room_type_id') == 2),


when I have it like this and try to search, no updates are triggered (no searching), I tried removing relationship method and then it started to search (updates triggered) but then I couldn't save the data.

Can someone help me figure out what is the breaking change that made this stop working after migration?

Thanks in advance for any help.
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

Textarea and select field disabled() issue
FilamentFFilament / ❓┊help
2y ago
Select field issue, HELP!!!
FilamentFFilament / ❓┊help
3y ago
struggle with select field =_=
FilamentFFilament / ❓┊help
2y ago
Select field with Checkbox
FilamentFFilament / ❓┊help
3y ago