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

steve_laracasts's avatar

Use Vendor Mixin

Hi there,

I would really like to use a mixin that is included in a Vendor package, specifically the tab-state.js in Spark, in my own code. I've been reading around and I'm struggling to come up with an answer that doesn't involve some pretty horrible path declarations. I haven't tried this because it seems inelegant and I have come to expect more from Laravel.

Does anyone know how to do this in a sensible way please?

Thank you :)

0 likes
1 reply
steve_laracasts's avatar

Pfft... I already have the Spark object, it's just there. There is literally nothing to be done, all you need to do is format your templates to match the ones used in Spark and it 'just works' :)

Please or to participate in this conversation.