I have a website made with Laravel and recently i have uploaded it on cPanel and now i have some problems; First problem is that in localhost i can save images in public/images from website and delete them but on cPanel no longer i could upload images.
Second issue is that i have removed all the images in cPanel but still my website loads that old images.When i go to image url directory there is nothing! i don't know how is it possible.
This is the code i used to save images:
$image = $request->file("image");
$new_name = "image" . "_" . $lesson->id . "." . $image->getClientOriginalExtension();
$image->move(public_path('images/lessons'), $new_name);
And the code for show images:
src="{{asset('images/lessons/image_'.$lesson->id.".png")}}"
This is my local folder :
Below you can find my public_html
folder :