Merge: integrar cambios del trabajo con chat en tiempo real
This commit is contained in:
@@ -19,6 +19,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
||||
{
|
||||
Validator::make($input, [
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'apellidoPaterno' => ['nullable', 'string', 'max:255'],
|
||||
'apellidoMaterno' => ['nullable', 'string', 'max:255'],
|
||||
'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
|
||||
'photo' => ['nullable', 'mimes:jpg,jpeg,png', 'max:1024'],
|
||||
])->validateWithBag('updateProfileInformation');
|
||||
@@ -33,6 +35,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
|
||||
} else {
|
||||
$user->forceFill([
|
||||
'name' => $input['name'],
|
||||
'apellidoPaterno' => $input['apellidoPaterno'],
|
||||
'apellidoMaterno' => $input['apellidoMaterno'],
|
||||
'email' => $input['email'],
|
||||
])->save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user