Need help with unique rule and ignore
Sorry if I can't easily comprehend the documentation.
Here's my code:
That
$this->model
is from here:
After doing that I'm still getting error:
I did not change the email.5 Replies
I also want the error message to say "This email is already associated with the other parent. Please use a different email."
Not sure, maybe this?
Also I'm not sure about the value of
$this
in various places. I think it could be safer to inject the $livewire
instance in the closures:
etc.That worked! I didn't know I could do
fn() =>
in the parameters.
How about the fail message?
This email is already associated with the other parent. Please use a different email.
Nvm, I saw it .
Nice
I think you can just do this too. might be cleaner