Hello, I deployed my website on Hostinger and everything is fine, except 1 thing. I try to upload pictures and that works completely fine, but when I want to load pictures its giving me a 404 not found error, and I kinda know where that come from. Its because its linking to the wrong storage file, since I had to split my app to deploy it, I had to take out the "public" directory and add it to the "public_html" directory. Now it made a storage directory inside the public_html directory and I dont know how to link everything to the storage folder inside my laravel app
#Wrong storage link
7 messages · Page 1 of 1 (latest)
https://github.com/laravel/laravel/blob/9.x/config/filesystems.php#L73
This line is responsible for what to link so the storage folder works from the public path.
However it's best to change the path.public instance. Which you can find here on how to do: https://developerhowto.com/2018/11/12/how-to-change-the-laravel-public-folder/
Its still not working, it cannot find my storage folder in the public_html folder
I've hosted some laravel apps on hostinger. The best thing I've found to do install your app in the route directory and create a symlink from public to public_html and use it like that.
I dont understand it anymore
Im so lost
It looks like you've followed the example from the Hostinger support article https://support.hostinger.com/en/articles/6152127-how-to-deploy-laravel-8-at-hostinger, is that right? I'm not sure about that setup, makes upgrading or anything really difficult, because it basically cuts and pastes the public directory into the public_html directory. Instead of doing that I created a symlink from my Hostinger public_html directory to the Laravel public directory (see attached image). I think I had to ssh in to do that, you can't do it through the admin panel, but it works pretty well.