cometrulz's avatar

Blade access to Asset issue

Hi Folks - I am still need to themes etc ... and I have a metronic theme, its favicon I load from - {{ asset('theme/dist/assets/media/logos/favicon.ico') }} which is working - however I made a custom directory so i don't over write original files while I am learning to use the theme, and then put new content i want to use into the structure under a custom director, I then updated the code to the path in the custom directory and updated my code to: {{ asset('theme/dist/assets/media/logos/custom/favicon.ico') }} - I have checked the file is there, no error in the log, permissions are all right, but the website won't load it. I also uploaded a png file and put the html in my blade file : Favico Logo and it just shows a broken image with the alternative logo. am i missing something i need to do to allow the custom folder to work? Thanks in advance if anyone can assist?

0 likes
3 replies
Snapey's avatar

i just put the favicon in the public folder

If you want to link all the other sizes then just provide the paths where they are located off your public folder

cometrulz's avatar

thanks snappy, my intention is to compare access to the theme, verses files i will change - hence the custom folder. Thing is i might want to inject other media into the theme, and i don't want the same problem - so if I can figure out why it doesn't work I would appreciate it a lot.

cometrulz's avatar

ok I solved my own problem - I was using the asset wrong - thinking it points to the resources directly when actually its the current public directory.

Please or to participate in this conversation.