© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
Tetracyclic

Select::selectablePlaceholder(false) not working with relationships

I have the following select component, which correctly displays as a list of the user's leads, with the first item always selected:

Components\Select::make('lead_id')
    ->relationship('lead', 'name', fn (): Builder => Lead::query()->where('user_id', auth()->user()->id))
    ->selectablePlaceholder(false)
    ->required()
Components\Select::make('lead_id')
    ->relationship('lead', 'name', fn (): Builder => Lead::query()->where('user_id', auth()->user()->id))
    ->selectablePlaceholder(false)
    ->required()


If
selectablePlaceholder(false)
selectablePlaceholder(false)
is removed, it works as expected. With it in place however, it always fails the
required()
required()
validation, despite the option being selected. Removing
required()
required()
allows the form to be saved, but the
lead_id
lead_id
value is never persisted to the database.
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 Form, `selectablePlaceholder(false)` sets first and only option to null
FilamentFFilament / ❓┊help
15mo ago
Issue with Select field and relationships
FilamentFFilament / ❓┊help
6mo ago
Problem: Exporter Not Working with Eager-Loaded Relationships
FilamentFFilament / ❓┊help
13mo ago
Column relationships dot syntax not working
FilamentFFilament / ❓┊help
2y ago