Change public path

This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
This commit is contained in:
JulianPrieber 2022-02-14 12:46:24 +01:00 committed by GitHub
parent fe110cc45f
commit 660caf0f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,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(public_path('/img'), $littlelink_name . ".png");
$profilePhoto->move(base_path('/img'), $littlelink_name . ".png");
}
return back();
@ -157,7 +157,7 @@ class AdminController extends Controller
Page::first()->update(['home_message' => $message]);
if(!empty($logo)){
$logo->move(public_path('/littlelink/images/'), "avatar.png");
$logo->move(base_path('/littlelink/images/'), "avatar.png");
}
return back();