Answer the question
In order to leave comments, you need to log in
Which package to use with resource management js, css, etc, taking into account dependencies in laravel 5?
Tell me if there is a package that will help me with managing js and css resources.
for example, I will register a resource with an alias in the service provider and then I can use the connection with auto-connection of dependencies in templates. I stumbled upon this somewhere in L4, but now I can’t find anything like it.
ServiceProvider.php
Asset::register('jquery.js', '/js/jquery.min.js');
Asset::register('bootstrap.js', '/js/bootstrap.js')->depend('jquery.js');
{{ Asset::insert('bootstrap.js') }}
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.js"></script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question