Assets
skalero01 opened this issue · comments
In your documentation you dont have any information about how to call the assets on the layout view, i tried adding the {{ Theme::path('public/css/style.css') }}
on the view but i am getting on the browser the next error Not allowed to load local resource: file:///C:/laragon/www/xxx/themes/xxx/public/css/style.css
Your documentation on the website doesnt say anything about assets and the wiki on here is not updated. How should this be solved?
There was a 'asset' method on previous versions for asset functionality. Take a look at;
Line 361 in d24ec32
I guess it was removed after.
Any news about this issue?
I fixed it with: <link href="{{ asset('themes/'.\Theme::getCurrent().'/css/theme.css') }}" rel="stylesheet">
. Same with the JS file.
I assume these references are within your theme's layout - what's the use case for pulling a reference of the current theme when you know you're working with a specific theme?
Just reference the theme directly 👍
<link href="{{ asset('themes/bootstrap/css/theme.css') }}" rel="stylesheet">