From 872f720bb0bfa849ae4cef688f404533f9cde4aa Mon Sep 17 00:00:00 2001 From: JulianPrieber <60265788+JulianPrieber@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:47:57 +0100 Subject: [PATCH] Change public path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/Http/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 7ad4970..3885ab4 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -201,7 +201,7 @@ class UserController extends Controller User::where('id', $userId)->update(['littlelink_name' => $pageName, 'littlelink_description' => $pageDescription]); if(!empty($profilePhoto)){ - $profilePhoto->move(public_path('/img'), $littlelink_name . ".png"); + $profilePhoto->move(base_path('/img'), $littlelink_name . ".png"); } return back();