Home > database >  the image does not appear even though the directory is correct laravel 8
the image does not appear even though the directory is correct laravel 8

Time:01-20

i tried to put my website's logo but however it's not appears. note: i already reload many times, and change the browser.

<link rel="icon" href="/img/logo-brebes.png">
<title>SIADU APP</title>

file directory : public->img->logo-brebes.png

image

Thank you if there anyone can help me with this problem, I really appreciate it.

CodePudding user response:

Try to do something like this,

<link rel="icon" href="{{asset('img/logo-brebes.png'}}">

Or

<link rel="icon" href="{{public_path('img/logo-brebes.png'}}">

Remember to always check the documentation: https://laravel.com/docs/9.x/helpers#method-public-path

CodePudding user response:

You're probably doing it the wrong way. Try doing it this way

<link rel="icon" href="{{asset('img/logo-brebes.png')}}">
  • Related