You should not have public in your URLs. your \ should be the public folder
Mar 13, 2024
5
Level 1
Cannot Retrieve an image in a symbolic link in Hostinger
PS: It works on my localhost
and this is a column from my table file_path: public/images/AXrmF7am6L9gHfPItSYxNg6ObmpJDSFWuuTsCces.jpg
I already did the command php artisan storage:link
and this is how I save the images: $path = $uploadedFile->store('public/images');
and this is how I fetch it $image->url = str_replace('public/', 'storage/', asset($image->file_path));
and the result is this https://mydomain/storage/images/AXrmF7am6L9gHfPItSYxNg6ObmpJDSFWuuTsCces.jpg
just like in my localhost but when I uploaded the project on hostinger it does not work anymore.
Please or to participate in this conversation.