1
I wonder why Laravel 8 is built with the folder /css
inside /resources
and not within /public
, as set out in documentation?
Call from the css file | Directory of the css file | outworking |
---|---|---|
<link href="{{ asset('css/main.css') }}" rel="stylesheet" type="text/css"> |
Resources/css/main.css | Laravel cannot find the folder and does not load the css file. |
<link href="{{ asset('css/main.css') }}" rel="stylesheet" type="text/css"> |
public/css/main.css | Everything happens perfectly. |