I have an application on shared hosting. The uploaded images are located in the storagepublicactors
directory. On localhost everything worked ok, but on production it doesn’t anymore (I changed the paths in index.php). Interestingly uploading images works fine, only they don’t display in the view. A 404 error is reported.This is how I tried to insert the photo
<img src=‘{{ Storage::url(’actors/‘ . $actor->thumb) }}’>
<img src=‘{{ asset(’storage/app/public/actors/‘ . $actor->thumb) }}’>
It’s the same every time. I’ve also tried creating a link to the storage php artisan storage:link
, I’ve also changed the filesystem in .env from local to public, but I keep getting the same thing and I’m starting to run out of ideas.
How can I display the photos in the view?