I think the answer is very simple. Creating a Vue Component is a perfect solution for what you're trying to achieve. Just create a Vue Component and re-use it throught your Laravel project.
Jun 24, 2020
5
Level 4
Laravel Components and Vue.js
Hello Team. I have a question for a approach.
Example: Lets create a dropdown Button Component.
I will create a Laravel Component. But now i need javascript for my dropdown button.
Where is the best place for my vuejs? Because, if i use this button many times in the same page, then i get the same javascript code again.
Should i create Vue Component,too for this button? My Code works, but its not clean...Many thanks.
Please or to participate in this conversation.