Issue
I'm working on a project which has to retrieve some data from the local storage. I'm saving a personal image to the locale storage, but when I'm trying to retrieve the image I'm getting 404 ERROR.
Error: http://localhost:8000/storage/app/img.png
This is the way I'm trying to get the image:
<img src="{{ asset('storage/app/img.png') }}" />
I red the Laravel documentation, but I don't know what is the problem.
Solution
Make sure that you are set the symlink with: php artisan storage:link.
Afterwards you can check:
<img src="{{ asset('storage/app/img.png') }}" /> or:
<img src="{{ asset('storage/img.png') }}" />
Answered By - Maik Lowrey Answer Checked By - Senaida (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.