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

maltekiefer's avatar

Best way for frontend in vue.js and backend in Laravel

Good day,

I would like to develop an application in Aue.js 3 with Primevue and use Laravel as backend for it.

Now I would like to know what is better in practice. I develop both in a Laravel environment. Or I develop backend and frontend separately from each other.

Surely both have advantages and disadvantages. How is it with you guys? How do you do it?

0 likes
2 replies
bugsysha's avatar

I would separate them. In my head that is easier. Clear separation of concerns. Also scaffolding for Vue app is far better when you do it through Vue CLI compared to what comes with Laravel. Less chances that some change in the repo will affect other team. Less chances for merge conflicts when you have two repos. Imagine if you have CI/CD setup to run tests on every push, frontend change would have to wait for backend tests to finish before you would be able to merge it. And so on...

martinbean's avatar

@maltekiefer If you’ve decided you must split your application, then keep them in the same repository. It will make development and deployment easier.

If you’re working on a feature and you split your front- and back-end into separately repositories, then you have to make two branches in two repositories and work on them in tandem just to work on a single feature. If your front- and back-end are in the same repository, then you can just work on that feature in a single branch, and then merge both the front- and back-end changes in one go when they’re ready.

Please or to participate in this conversation.