How validate unique email out of the user that is updating it in Laravel?

You can tell that to validators:

'email' => 'unique:users,email_address,'.$user->id

Check the docs, in section ‘Forcing A Unique Rule To Ignore A Given ID’.

Leave a Comment