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

aburany's avatar

Customizing Spark Next UI

I'm new to Spark, purchased and installed the latest (and greatest?) Spark Next. Using a project based on Jetstream / Livewire, I want to customize the UI above the level the thin documentation provides (changing logo and so); but rather make some changes to the default style + rearrange and hide some fields. I found that I can publish the views:

php artisan vendor:publish --tag=spark-views

But that publishes only app.blade.php and 2 email templates. How can I publish and customize all other views, like all the HTML under BillingPortal.vue (that I see under the /vendor folder)?

0 likes
4 replies
bugsysha's avatar

You can probably extend or even replace BillingPortal.vue with your own version. I wouldn't do it cause then every time you receive an update you would have to check what is new and if your change broke it.

1 like
aburany's avatar

Thank you, I was looking into this, but modifying vendor files directly doesn't seem like a good idea (especially that the app is deployed automatically through Larvael Vapor to cloud). What leaves me thinking that if I want a bit more customized views for purchasing/managing subscriptions, I can either:

  • settle back to using Cashier and ditch all the advantages of Spark Next
  • or read somewhere a possibility to use only Spark's controllers (as an API) - but the documentation doesn't exist for this
bugsysha's avatar

Since you are thinking about tweaking things, you can always fall back to the iframe as a dirty solution. With deep selectors, you can hide what you don't want to be visible assuming it will not affect validation or something similar.

aburany's avatar

Thanks! Though that seems messy as well. For now, I'll stick with basic Cashier and see later if I can do something about customizing Spark Next.

Please or to participate in this conversation.