I have this in view.blade.php
{{HTML::image('resources/views/Folder/Subfolder/Subfolder/Photo/'.$item->Photo)}}
$item->Photo takes the name of the image from the database
In the same view, I have use HTML;
What I see on the screen:
<img src="http://localhost:8000/resources/Folder/Subfolder/Subfolder/Photo/3da0d12d6d8667963392a446262b1773.jpg">
If I replaced {{HTML::image.... with
<img src="resources/Folder/Subfolder/Subfolder/Photo/{$item->Photo}}" alt="NO PHOTO">
I see on the screen
<img src="http://localhost:8000/resources/Folder/Subfolder/Subfolder/Photo/3da0d12d6d8667963392a446262b1773.jpg">
NO PHOTO
Images exist, I sowed it in a folder. I'm doing something wrong, I just don't know what. I think Laravel wants the photos to be in a specific folder ... could this be the cause of the problem? Do you have any ideas?
In the controller, I have this:
$destinationPath =base_path().'\resources\Folder\Subfolder\Subfolder\Photo'; chmod($destinationPath,0777);
Image size is 7.673 bytes. I tried with a different image, it doesn't work either. This somehow prevents all my browsers from displaying images on the local host Has anyone encountered this problem before? I do not know what else I should try ...
source share