My image file path is public/img/logo.png
and
my app.blade.php file path is resources/views/app.blade.php
Inside of my app.blade.php file I use {{HTML::image('/img/stuvi-logo.png')}}
to display an image.
I don't understand why this won't find the image.
What is the root folder of the image()
method?
note: inside public folder create a new folder named image then put your images there. Using URL::asset() you can directly access to the public folder. Show activity on this post. Show activity on this post.
Just put your Images in Public Directory (public/... folder or direct images). Public directory is by default rendered by laravel application.
If you use bootstrap, you might use this -
<img src="{{URL::asset('/image/propic.png')}}" alt="profile Pic" height="200" width="200">
note: inside public folder create a new folder named image then put your images there. Using URL::asset()
you can directly access to the public folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With