Need help with unique rule and ignore

Sorry if I can't easily comprehend the documentation.

Here's my code:

TextInput::make('personal_email')
       ->unique('parents','personal_email',  $this->model)


That $this->model is from here:

protected function getTableActions(): array
    {
        return [ 
            Action::make('edit')
                ->action(function(Parents $record){
                    $this->model = $record;
                }),
        ];
    }


After doing that I'm still getting error:

The  Email has already been taken


I did not change the email.
Was this page helpful?