[Vuejs]-Laravel Vuejs deploy application in hosted server

1๐Ÿ‘

you need to turn Vue to production mode,

you can do so by adding this line to your app.js

Vue.config.devtools = false
๐Ÿ‘คAkki Soufiane

0๐Ÿ‘

I fix the problem, and I share with you the solution:

So this kind of problem depends on the base URL of your app router, for my situation base: __dirname is the problem, so I changed this to base: '/project_name/public/, and everything works fine.

Thank you all for you help.

-2๐Ÿ‘

Laravel has become the most popular choice for developing PHP projects. One important reason for this popularity is the built in support for Vue.js, a very fast growing JavaScript library for developing impressive front-ends.

This combination results is fast, secure and very impressive applications that need minimum time to go from ideation to final code review. The support for Vue.js means that Laravel developers could use Vue components easily within their apps without wasting time in writing integrations for the components.

Host you Laravel Vuejs spa

๐Ÿ‘คpardeep

Leave a comment