проверить уникальный или равный

//Use an if statement to validate some items conditionally:
$request->validate([ //Always validated
	'name' => ['string'],
	'some_number' => ['numeric', 'integer']
]);
if ($request->email != $user->email) //Validated only if different from user's currently stored email
	$request->validate([
    	'email' => ['email', 'unique:users']
    ]);
NachooCh