profile update changed

This commit is contained in:
Benjamin Takats
2022-12-01 20:59:46 +01:00
parent 651a15da04
commit ad21f03724

View File

@@ -21,7 +21,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
{ {
Validator::make($input, [ Validator::make($input, [
'name' => ['required', 'string', 'max:255'], 'name' => ['required', 'string', 'max:255'],
'email' => ['email', 'max:255', Rule::unique('users') 'email' => ['nullable', 'email', 'max:255', Rule::unique('users')
->ignore($user->id) ->ignore($user->id)
], ],
'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'], 'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'],