Skip to content

Commit ffb123c

Browse files
committed
Update AdminController.php
1 parent 369965f commit ffb123c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function editUser(request $request)
210210
User::where('id', $id)->update(['name' => $name, 'email' => $email, 'password' => $password, 'littlelink_name' => $littlelink_name, 'littlelink_description' => $littlelink_description, 'role' => $role]);
211211
}
212212
if (!empty($profilePhoto)) {
213-
$profilePhoto->move(base_path('/img'), $littlelink_name . ".png");
213+
$profilePhoto->move(base_path('/img'), $id . ".png");
214214
}
215215

216216
return redirect('panel/users/all');

0 commit comments

Comments
 (0)