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
cb349a2280
commit
872f720bb0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue