I don't get to understand the difference between using asset
or mix
Laravel helper when you have to include some js
or css
file.
<script src="{{ mix('/js/app.js') }}"></script>
vs个
<script src="{{ asset('/js/app.js') }}"></script>
Both generates a link to public
folder so is there any difference between them? Is it better to use one of them instead of the other? In which context is it better?