I have a problem with display image in laravel with html
I am trying to show image with html and I am sure I have right the src, even when I am with cursor on it the image will pop up and I don't have problem with wifi connection, but still it will just show the alt.
<img src="public/images/1663946644-e.jpg" alt="Problem with loading image">
If I add / before public like that: <img src="/public/images/1663946644-e.jpg" alt="Problem with loading image">
Then nothing change. If I will delete the public: <img src="/images/1663946644-e.jpg" alt="Problem with loading image">
It will return with message Cannot resolve file '1663946644-e.jpg' But if I let it as it is let cursor on the src, then the image will show up on the screen, so I think the problem shouldn't be in src.
@laravel_beginner All of your urls have storage/app/public in them? Or did you misunderstand the question? I am talking about the url in your browser, not the folders on the computer
What url do you visit your site on? (you can anonymize the domain if needed)
@Sinnbeck No sorry I misunderstand your question, you asked if I have some other public so I looked and in direction /storage/app/public found another folder named public, but the images are stored in normal public public/images
@Sinnbeck Yes you are right it works, but I don't get it is highlighted and writes Cannot resolve directory 'images'. That's also why I didn't tried it on the website, when I saw this in phpstorm