fix bug can't update profile information
This commit is contained in:
@@ -21,7 +21,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
|||||||
Validator::make($input, [
|
Validator::make($input, [
|
||||||
'name' => ['required', 'string', 'max:255'],
|
'name' => ['required', 'string', 'max:255'],
|
||||||
'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
|
'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
|
||||||
'username' => ['required', 'max:255', Rule::unique('users')->ignore($user->id)],
|
|
||||||
'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'],
|
'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'],
|
||||||
])->validateWithBag('updateProfileInformation');
|
])->validateWithBag('updateProfileInformation');
|
||||||
|
|
||||||
@@ -36,7 +35,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
|||||||
$user->forceFill([
|
$user->forceFill([
|
||||||
'name' => mb_strtolower($input['name']),
|
'name' => mb_strtolower($input['name']),
|
||||||
'email' => mb_strtolower($input['email']),
|
'email' => mb_strtolower($input['email']),
|
||||||
'username' => mb_strtolower($input['username']),
|
|
||||||
])->save();
|
])->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user