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

luisferfranco's avatar

Can you use Inertia AND livewire at the same time?

Maybe my question should be formulated differently...

I really like Livewire, and I feel enough confident with it, so it is my goto stack. But then I miss the SPA that Inertia provides (and I also like a lot Inertia's form helper), so I was wondering if I could mix both stacks, and what would be the right way to do it. I also prefer blade to Vue (I'm not that good on Vue, of course)

Now, other way to rephrase my question would be: how can you build a SPA using Livewire?

0 likes
6 replies
vincent15000's avatar

InertiaJS is not a framework, it's only a kind of interface between a backend framework (like Laravel) and a front end framework (like VueJS).

If you want to use InertiaJS, it is for displaying for example VueJS components. And it's not compatible with using Livewire which handle its own views.

Livewire can be compared to VueJS but not to InertiaJS. Livewire works without InertiaJS and is completely integrated to Laravel.

2 likes
luisferfranco's avatar

@vincent15000 Yeah, that's what I was thinking more or less... instead of using Vue (Inertia's default as I understand) use Livewire. I think the way to go es as @sinnbeck says, wait for Livewire 3

1 like
Sinnbeck's avatar

Livewire 3 should work like a spa so maybe just wait for it?

3 likes

Please or to participate in this conversation.