How to display image in web site with laravel 5 ? How to display image in web site with laravel 5 ?
I want to add image in web site. I tried html code <img src but unviewed.
you need to post what code your using, which view, etc else
<img src="/img/path/to/image.jpg" />
The img folder(s) are within the public folder
I tried that one but not worked. my code img src="/public/img/picture.jpeg"
wheres you code, your image file, add a bit more details and code to help assist
You dont need the public in there. just img src="/img/picture.jpeg"
My code in resources/views/tube.blade.php's body
<form method="link" action="http://www.tumblr.com">
<button type="submit" class="btn btn-primary" => Tumblr</button>
</form>
<img src="/img/picture.jpeg" />
</div>
with in your browser console are you getting any errors, like permissions, missing image, is the file name .jpg not jpeg? An i gather your getting that view through and seeing the Tumblr button
Yess, I changed jpeg to jpg . Thank you so much
this should have worked for you
<img src="{{URL::asset('directory/name_of_image_file.file_format')}}"
{!!Html::Image($user->avatar)!!}
{!!Html::Image('/images/Selection_121.png')!!}
Please sign in or create an account to participate in this conversation.