0👍
If I understand you correctly, you want to use Laravel and Vue.js together in the same application folder?
Should be pretty easy then.
- First off, build your application with Vue scaffolding for the frontend.
- Then, make a route that redirects everything to a single controller method that returns a spa view. (Or use a closure)
- In this view, include your app.js as an asset and include the main Vue component (something like
<app></app>
). - Then build your Vue app. All requests will now be forwarded to the spa view, which includes your app.js, which should bootstrap Vue.
Source:stackexchange.com