S
S
Stanislav Pochepko2016-06-08 15:07:26
Laravel
Stanislav Pochepko, 2016-06-08 15:07:26

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');

.blade.php
{{ Asset::insert('bootstrap.js') }}
end up in blade.php
<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

2 answer(s)
I
Ilya, 2016-06-08
@DJZT

Stolz/Asset

  • #Collections

A
Alex Wells, 2016-06-08
@Alex_Wells

Laravel Elixir -_-

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question