A minor question. I was trying to learn routing using Vue.JS in laravel, so I went to this website and I see :
<script src="{{ mix('js/app.js') }}"></script>
And this differs from what I know on including app.js
into my website like this:
<script src="{{ asset('js/app.js') }}"></script>
My question is:
- Is there any difference on using one of them?
- When to use
mix
orasset
? - Does using
asset
affect routing in Vue.JS?
I tried using either of them, but as I said, I'm new to routing using laravel & Vue.JS so I don't know where I did wrong. I can't get it to work.
I've also tried googling, but what they show isn't related to my question,
.
.
PS: Additional Notes.
- In my "website" I already implemented Authentication. Could be a factor or not that cause my routing to fail. If so, how to handle this?