How do you manage assets in the new Laravel 4? It looks like Taylor Otwell has replaced Asset::add with something new.
Asset::add
What I am trying to do is have Laravel add my CSS and JS files. There were several ways to do this in Laravel 3, but they seem to be gone now. One was Asset::add and the other was HTML. What are the replacements for these?
HTML
In Laravel 4 you can use the HTML class, it's default included in the Laravel Framework package:
Stylesheet:
{{ HTML::style('css/style.css') }}
Javascript:
{{ HTML::script('js/default.js') }}
2.1m questions
2.1m answers
60 comments
57.0k users