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

Sopamo's avatar
Level 11

Double - A new way to use Vue.js together with Laravel

I just finished working on the alpha release for double. With double it’s super easy to use Laravel together with vue.js, because it removes the need to write any API code (in backend & frontend) and also automatically generates typescript types for your controller code!

It’s open source, and I also just finished recording an introduction video:

https://github.com/Sopamo/double-vue

I’m really interested in your feedback!

0 likes
6 replies
vincent15000's avatar

I have just had a look ... it seems interesting. Perhaps I will test it to understand how it works.

Sinnbeck's avatar

Cool to see a different take on this compared to inertia. Hope it takes of :)

2 likes
Sopamo's avatar
Level 11

@Sinnbeck I actually didn't realize the conceptual similarities to inertia until I had built ~50% of what double is now. Double was actually inspired by remix. The main difference between inertia and double is, that inertia really "thinks" from the Laravel side of things, because you still have a controller, so you're really building a Laravel app and inertia makes it easy to integrate vue into it. Double on the other hand "thinks" from the vue side of things, so it's really for people who want to build an SPA and add backend logic to it. I'm not saying either concept is better or worse, they're just different use cases I think :)

Also, one thing about double I think you really have to experience to feel how good it is, is the automatic typescript generation from your PHP files. That just feels like magic :)

1 like
Sinnbeck's avatar

@Sopamo yeah they are quite different it seems even though they are both a bridge between the two. Sadly I only use react myself so I cannot try it out :)

1 like
vincent15000's avatar

@Sinnbeck @sopamo Would double be similar to nuxt for a JS back framework ?

I just discover nuxt, I don't really know it for the moment.

Sopamo's avatar
Level 11

@vincent15000 Nuxt is actually very different from double. Nuxt is mostly focused on providing easy routing for your frontend components and also provides lots of cool features, but mostly related to frontend development. Double makes it super easy to connect Laravel code with your vue.js project. Feel free to watch the video that's linked in the readme (https://github.com/Sopamo/double-vue). I'm also happy to answer any questions here :)

1 like

Please or to participate in this conversation.