From ad21f0372474a0c7660ddc179da4e4762d1728d0 Mon Sep 17 00:00:00 2001 From: Benjamin Takats Date: Thu, 1 Dec 2022 20:59:46 +0100 Subject: [PATCH] profile update changed --- app/Actions/Fortify/UpdateUserProfileInformation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Fortify/UpdateUserProfileInformation.php b/app/Actions/Fortify/UpdateUserProfileInformation.php index 44499326..6a6be6c4 100644 --- a/app/Actions/Fortify/UpdateUserProfileInformation.php +++ b/app/Actions/Fortify/UpdateUserProfileInformation.php @@ -21,7 +21,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation { Validator::make($input, [ 'name' => ['required', 'string', 'max:255'], - 'email' => ['email', 'max:255', Rule::unique('users') + 'email' => ['nullable', 'email', 'max:255', Rule::unique('users') ->ignore($user->id) ], 'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'],