Merge: integrar cambios del trabajo con chat en tiempo real

This commit is contained in:
2026-04-28 16:30:01 -06:00
parent 47d29b7f13
commit b469b884f5
10 changed files with 402 additions and 384 deletions
@@ -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();
}