© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
bflip

Select Default not working

Not sure what I'm drinking this morning, but coding is hard. haha

No idea why this select isn't setting my default? Just says "Select an option"

Select::make('expires')
                        ->options([
                            'never' => 'Never',
                            'date' => 'Date',
                        ])
                        ->default('never')
                        ->required(),
Select::make('expires')
                        ->options([
                            'never' => 'Never',
                            'date' => 'Date',
                        ])
                        ->default('never')
                        ->required(),
Solution
NVM, it's because I'm doing it wrong. No biggie
Jump to solution
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 select not working
FilamentFFilament / ❓┊help
3y ago
select 'default' not working in filter action/forms
FilamentFFilament / ❓┊help
2y ago
Default Select
FilamentFFilament / ❓┊help
3y ago
Default select not being selected
FilamentFFilament / ❓┊help
3y ago