mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-04 04:58:27 +01:00
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:
parent
fe110cc45f
commit
660caf0f12
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user