$validatedData = $request->validate([
'title' => ['required', 'unique:posts', 'max:255'],
'body' => ['required'],
]);
$email = 'fake@email';
$validator = Validator::make(['email' => $email], [
'email' => 'email'
]);
if ($validator->fails()) {
return 'Invalid email';
}