Why a wrong email is accepted even after using laravel validator?
$validator = Validator::make($request->all(), [
'email' => 'required|email|unique:users',
]);
if ($validator->fails()) {
return ResponseBuilder::error($validator->errors()->first(), '422');
}
This set of code accepts "@ot.com". I don't think this should be accepted.