From ffb123c30619612393095bb38a49ba94fc3bb50b Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Thu, 2 Feb 2023 18:40:40 +0100 Subject: [PATCH] Update AdminController.php --- app/Http/Controllers/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 735b380..0f65354 100755 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -210,7 +210,7 @@ class AdminController extends Controller User::where('id', $id)->update(['name' => $name, 'email' => $email, 'password' => $password, 'littlelink_name' => $littlelink_name, 'littlelink_description' => $littlelink_description, 'role' => $role]); } if (!empty($profilePhoto)) { - $profilePhoto->move(base_path('/img'), $littlelink_name . ".png"); + $profilePhoto->move(base_path('/img'), $id . ".png"); } return redirect('panel/users/all');