I'm using Vue with Laravel, following basically this structure:
So basically, I'm using a js file for each blade view. But now I need to find a way to re-use those js files for others blade views, and I don't know if it is possible with the structure I'm using.
Above is an example about what I'm trying to do. Basically, I have a javascript file with Vue methods that I could reuse. What I thought is: "Only add the el:'.reusable-class' to the <div> on the example.blade.php and add the <script src="js/reusable.js"></script> at the bottom and that's it! I've imported successfully their methods..." But doesn't work.
Other thing I've tried is to call the method just beetween javascript files. something like this:
appExample = new Vue({
...
methods:
test(){
appReusable.reusable();
}
And the message I get is: appExample is not defined. I've read about it, about how to import another vue component, but it will change my project structure...
What should I do to successfully import and reuse methods from another vue file with my current project structure?

