I uploaded the laravel project on shared hosting. But the images are not showing in the post.
The image address is not the correct path. trying to find this...
What I did to set the public folder?
I simply copied .htaccess file from the public folder and pasted it in the root directory.
Then I renamed the server.php file to index.php
So, what else should I fix to get the correct image path for the image I have saved or going to upload with the new posts, on publuc/uploads/imagename.png
Well, the project is working fine only the image path not correct.
What can I put in place of public_path() so the image path will store in the same place and I do not have to modify the rest of the codes on different pages?
Now it continuously storing the image under public' folder even though I have moved the public` folder to root. It creates one and stores it there.
What I usually do is to keep my project files one level below public_html and copy the content of public to public_html. Then change the following lines as: