Level 18
Never mind. I have figured it out on my own.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can i create Vue instance for specific Blade templates. I am not interested in making components and registering them to app.js because if i write something in app.js
blade.php
var app1 = new Vue({
el: '#app1',
data: {
message: 'Life is good. Seems like it is working'
}
})
var app2 = new Vue({
el: '#app-2',
data: {
message: 'You loaded this page on ' + new Date().toLocaleString()
}
})
i just want simple Vue instance for a specific blade template
Please or to participate in this conversation.