I lost a project due to a problem on my PC. When downloading the project from Github I had to reconfigure everything but I couldn't recover the functionality for the images. I had the images saved so I copied them to the Storage folder and they don't work. In fact if I load new images it doesn't work either.
Mistake:
empty images
Checking the URLs in the element inspector I see:
The folder structure:
MySite/storage/...
In the views, I show the images as follows:
<img src="{{ Storage::url($image->url) }}" />
I ran the command again:
php artisan storage:link
And it didn't solve my problem.
If I access the url of any system image, it tells me: 404 not found
and the url: http://localhost:8000/storage/posts/7Vl8bNpHp7emLKxUl52S90rOIAlSa62uP1r5aC1U.png
If I look in the image storage folder, I find it at the following address:
MySite\storage\app\public\posts
Good day,
The path
storage
may be misconfiguredTry the following:
config/filesystems.php
public
as follows:storage
from your folderpublic
if it already existsphp artisan storage:link
If it doesn't work try again but in step 2 where it says
'root'
put the following'root' => storage_path('app/public')