© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
13 replies
Jamie Cee

Unique field on a form

Having an issue and unsure the cause. I have a contact number field, and trying to add unique so that on update, it can ignore it.

                        Forms\Components\TextInput::make('contact_number')
                            ->unique(ignorable: $form->getRecord())
                            ->tel()
                            ->maxLength(255),
                        Forms\Components\TextInput::make('contact_number')
                            ->unique(ignorable: $form->getRecord())
                            ->tel()
                            ->maxLength(255),


But its not liking the checking the user.

I can confirm the DB field is ID, and the uuid matches
image.png
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

unique field erroring on update
FilamentFFilament / ❓┊help
3y ago
Repeater unique field
FilamentFFilament / ❓┊help
3y ago
unique rules depending on other field
FilamentFFilament / ❓┊help
15mo ago
assertTableActionDataSet() on a form with FileUpload field
FilamentFFilament / ❓┊help
3y ago