Update AdminController.php

This commit is contained in:
Julian Prieber 2023-02-02 18:40:40 +01:00
parent 369965f55f
commit ffb123c306
1 changed files with 1 additions and 1 deletions

View File

@ -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');