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

vincent15000's avatar

Laravel SPA with AlpineJS ?

Hello,

I have to choose between AlpineJS and VueJS.

AlpineJS is very light compared to VueJS.

I already have developed an application with VueJS directly integrated inside Laravel and it works fine.

Is it possible to do the same with AlpineJS ?

Thanks for your answer.

V

0 likes
4 replies
martinbean's avatar

@vincent15000 I don’t really understand what you’re asking? What do you mean, “do the same with AlpineJS”? No, you can’t make a Vue.js application in AlpineJS because AlpineJS is not Vue.js.

You seem to be posting a lot of questions like “Should I use X or Y?” but these questions don’t have one, canonical answer. If there was a single answer, and that answer was say, Vue.js, then Alpine wouldn’t exist if you were meant to use Vue each and every time.

Play with these things and work with what suits you and your project.

1 like
vincent15000's avatar

@martinbean I meant is it possible to create a SPA with AlpineJS integrated inside Laravel as it is the case with VueJS.

vincent15000's avatar

@martinbean

You seem to be posting a lot of questions like “Should I use X or Y?”

That's right, sometimes I have choices to do and I'm not sure of the choice.

martinbean's avatar
Level 80

@vincent15000 No. Alpine is not a suitable choice for creating a SPA at all. Alpine is a utility library for manipulating the DOM based on state.

1 like

Please or to participate in this conversation.