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

JordanHoek's avatar

VueJS Router in Spark 6.0

Hi there,

I'm new to Spark, VueJS and Laravel. But I figured it would be a good foundation to start my new project with Spark.

I do want to create an SPA or at least one with as little as possible page loads. So this would be where VueRouter comes in..

The problem is I can't seem to find a good tutorial or example on how to implement it.. There is stuff on Google but almost all I found was outdated.

Is there someone who had a similar problem and found a good way to implement it?

Thanks in advance! Jordan

0 likes
1 reply
ejdelmonico's avatar

You don't have to make it complicated if it's not necessary. You can create a full Vue frontend app and just use Spark as a portion of the site or in a subdomain for when a user wants to signup or access their dashboard. You really do not have to do anything special. For instance, you can use the Spark events to do what you need on the frontend. However, it all depends on your needs.

Please or to participate in this conversation.