profile update changed

This commit is contained in:
Benjamin Takats
2022-12-01 20:59:46 +01:00
parent 28f162b5d6
commit b1e0cdba86

View File

@@ -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'],