Ad

Why The Image Does Not Appear In Footer?

- 1 answer

My code of footer view is like this :

...
<div class="col-md-4">
  <a target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="{{url('/')}}"><img src="images/dwi.png" alt="Travel Agency Logo" /></a>
</div>
...

I have a few pages. On the home page, the image appear. But on another page, the image does not appear. Whereas all pages using the same view footer. Why the image only appears on the home page?

Thank you

Ad

Answer

Try using the asset function:

<img src="{{ asset(images/dwi.png) }}" alt="Travel Agency Logo" />

See: https://laravel.com/docs/5.1/helpers#method-asset

Ad
source: stackoverflow.com
Ad