I'm building a basic modular CMS, each module can contain 'blocks' which are blade templates that can be used in the page builder. I want all the files for a module contained in a single folder, so I want the assets for a block to be loaded from the blocks directory inside the module directory.
This is the current directory structure of the modules.
From skeleton.blade.php I want to be able to link the style.css, but I can't since it's not within the public directory.
How do I link assets outside of /public?
I followed your instruction. It works fantastic for js file. But it does not work for css file.
For css file, it creates the link which is fine, but style does not apply the style to the elements. When I try to access the css file via browser from page source, it force for download!
However, as I am using 5.2, I tried as below
return response()->file($path);
Now it doesn't force for download and I can see my css stylesheet via browser, but still it doesn't apply the style to elements! Any idea what I can do ?