How can I speed up Laravel + VueJS development without duplicating the process?
I am developing my startup with Laravel (as an API) and VueJS as a totally separated app (I'm using the same app with Capacitor to make it a mobile app, so Inertia or something like this is not an option).
The problem is that I feel like duplicating the process. Whenever I need to create a new section (let's take as an example a CRUD), I need to create new VueJS components or duplicate some very similar ones, create Vue routes, then doing the same thing on Laravel (create migration, create model, create controller, create methods in controller, create routes).
Is there a way to streamline the process? I was thinking about writing my own code generator that would work with my process, but I would have to keep it updated.
Well there are already Laravel CRUD generators like Blueprint or QuickAdminPanel that could generate the back-end API for you.
Not sure if there are separate generators for Vue.
Either way, none of those generators will generate exactly what you need, so you will still need to make manual changes. So experiment with those and maybe one of them will fit.
But it's questionable if it's worth the time to investigate and adopt a new tool workflow if you will ever use it for ~5 CRUDs, maybe it's ok to launch a few artisan commands each time?
@pkboom that's a great one, thank you. The only problem is the mobile app - we would have to rewrite the API for the mobile app and a separated vuejs app that runs inside a webview with Capacitor. Or am I wrong?