© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
3 replies
Batman

Setting default on select adds a second "Uncategorized" option

When I set the
default
default
on a
SelectInput
SelectInput
it adds the value in default to the options list. So after this there are two
Uncategorized
Uncategorized
options. It is not eager loading, it is loading when you select the dropdown.

Select::make('category')
                            ->label('Category')
                            ->required()
                            ->preload()
                            ->searchable()
                            ->relationship('category', 'name')
                            ->default('Uncategorized'),
Select::make('category')
                            ->label('Category')
                            ->required()
                            ->preload()
                            ->searchable()
                            ->relationship('category', 'name')
                            ->default('Uncategorized'),
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

Default option for select filter
FilamentFFilament / ❓┊help
16mo ago
Select Input populated via db query and setting default option?
FilamentFFilament / ❓┊help
3y ago
Disable Select Filter Default "All" Option
FilamentFFilament / ❓┊help
2y ago
Select filter - remove/disable default option
FilamentFFilament / ❓┊help
3y ago