Skip to content

Commit 4b6af77

Browse files
fix
1 parent 404fe21 commit 4b6af77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/black-stubs/app/Http/Controllers/UserController.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ public function update(UserRequest $request, User $user)
6969
{
7070
$hasPassword = $request->get('password');
7171
$user->update(
72-
$request->merge([
73-
'picture' => $request->photo ? $request->photo->store('profile', 'public') : $user->picture,
74-
'password' => Hash::make($request->get('password'))
75-
])->except([$hasPassword ? '' : 'password'])
76-
);
72+
$request->merge(['password' => Hash::make($request->get('password'))])
73+
->except([$hasPassword ? '' : 'password']
74+
));
7775

7876
return redirect()->route('user.index')->withStatus(__('User successfully updated.'));
7977
}

0 commit comments

Comments
 (0)