If I have a file css/style.css
inside the public
folder. Can I include this file in a .blade.php
file using:
<link rel="stylesheet" href="css/style.css">
instead of
<link rel="stylesheet" href="{{asset('css/style.css')}}">
Or what's the difference between the two cases?
CodePudding user response:
if the style files are placed in the public directory, you can write the path to them without asset helper and everything will work. However, if the resources you need are outside the public directory, this helper is indispensable. I think the file storage documentation will suit you