Hi I am using Blue shared Hosting and I've been trying surfing around this site looking for answers, but nothing works for me, I want to upload an image that save in public_html folder, instead of saving it in project folder (I separate the project folder and put all public file in public_html folder). but it returns to my project folder, not public_html one. please help me how can resolve that thanks.
Controller
if($request->has('image')){
$imageName = Storage::disk('cms')->putFile('', $request->image);
$home_slider->image = $imageName;
$home_slider->save();
}
filesystem.php
'cms' => [
'driver' => 'local',
'root' => public_path('uploads'),
'url' => env('APP_URL').'uploads',
'visibility' => 'public',
],