We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28dd313 commit 5b68a3aCopy full SHA for 5b68a3a
src/material-stubs/app/Http/Controllers/UserController.php
@@ -63,9 +63,10 @@ public function edit(User $user)
63
*/
64
public function update(UserRequest $request, User $user)
65
{
66
+ $hasPassword = $request->get('password');
67
$user->update(
68
$request->merge(['password' => Hash::make($request->get('password'))])
- ->except([$request->get('password') ? '' : 'password']
69
+ ->except([$hasPassword ? '' : 'password']
70
));
71
72
return redirect()->route('user.index')->withStatus(__('User successfully updated.'));
0 commit comments