In my instance one user is inviting another I would like to check if the user they are inviting is not themselves.
Thus I have two variables incomming email and user->email
$this->validate($request, [
'email' => 'required|email',
]);
How can I add that validation rule to the validation call?
正确答案