'Laravel 8, get asset not found (404)
I am trying to display a svg in my update page.
But when i try this:<img src="{{ asset('storage/images'.$map->file_name) }}" />
(file extension is already included in the file_name)
I get an error 404 when i open inspect element.
I already linked the storage using: php artisan storage:link
The svg files are in this directory: storage/app/public/images and storage/app/images
The reason why i placed the svg files in two different is for debugging
I also made a new project to see if i did something wrong or it's the project.
I did the exact same in the current project but in there it did work.
Anyone know if there is something that i have to change or what ever?
Edit:
I already found a solution, i just had to remove the 'storage' from the asset
And i found out that laravel doesn't like it when i make a storage link and then move my project to a different pc/laptop
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
