When ever i give path in laravel for resources folder, it not shows pictures and apply css from resources but then i found solutions on stack. Which was save my file’s, pictures css js in public folder then give path like this, {{asset(‘/img/img.png’)}} it works only when files are in public not for resources folder.
My question is keep files regarding website pictures css js etc in public is safe, or not. Does it have any vulnerabilities for hackers to access these files from public folder.
And what about resources folder, why am not able to show my pictures from here and css.
I tried this syntax as href to access my files and pictures to show on home page of site, but not working.
{{asset(‘resources/img/img.png’)}}
Also try simple href and give path resources/img/img1.png not working for artisan serve but it works in local host.