Support the ongoing development of Laravel.io →
posted 2 years ago

In Vue 2 you could add some Vue instructions at the @section('scripts') of a blade file using

new Vue({
el: '#app',
    data: {
        loader: false
    },
...

But it does not work in Vue 3 and I can't find anywhere how to do it now. All my blade files with Vue are broken... Anyone, please? Thanks in advance!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.