Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mrvnk's avatar
Level 1

How to use custom Vue component in Laravel Nova template?

I am trying to register my custom vue component to Nova so I can add it to the layout.blade.php but it is not loaded and the identifier is not resolved. How / where to register my custom Nova component?

0 likes
5 replies
mostromhall's avatar

I am also wondering how to do this, did you manage to solve it?

mrvnk's avatar
Level 1

What I ended up doing was to create a new nova:asset which registers my custom vue components.

zakaria_tbey's avatar

Go to your component tools.js file & register it like this :

Nova.booting((Vue, router, store) => {
    Vue.component('your-component-name', require('./components/Tool'));
})
5 likes

Please or to participate in this conversation.