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),


But its not liking the checking the user.

I can confirm the DB field is ID, and the uuid matches
image.png
Was this page helpful?