Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

k-web-dev's avatar

What is the best way to deploy a Laravel project with Vue.js SPA

I am about to deploy a project which has a Laravel API (using passport) as a backend and a Vue.js SPA as a front end ? I have looked at envoyer and laravel forge, but I am not sure if they can me used for SPA apps. I am interested to find a stable solution for my application as I am aiming at having zero downtime.

0 likes
3 replies
Tray2's avatar

Forge is used to stage your server and make it ready for running your app not installing it. Envoy can be used to deploy the application from github or similar and it will deploy it even if it's a SPA or a plain ol Laravel app.

1 like
k-web-dev's avatar

Thanks for the reply, but I am not entirely sure how the SPA deployment will work.

Say that we have 10 users that have already loaded the SPA onto their clients. If we use envoyer to deploy changes to the laravel back end and the SPA front end.while they are using the app, won't they experience an application crash since the backend has been changed ?

MaverickChan's avatar

you can deploy you spa along side with your laravel backend server laravel shipped with a built-in vue support system , you can use that or , deploy in another server

1 like

Please or to participate in this conversation.