Skip to content
Advertisement

How to correctly use Laravel and Vue?

Please am new in using Laravel + Vue. I have registered a component but it is failing to display content in my blade template. Please i need assistance on how to properly do that in Laravel and Vue?

Code below layout.app

JavaScript

welcome.blade.php

JavaScript

app.js

JavaScript

Content in my Articles.Vue

JavaScript

Please i need assistance..Its not working for me.

Advertisement

Answer

Looks like everything is done correctly! Did you build your changes after making the changes?

If not, please do that using npm run prod, this will compile the javascript and scss assets in public app.css and app.js file. which you already include in your blade layout file.

If it still not working, please share your webpack.mix.js file.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement