Level 30
The Stripe Key is refered in resources/views/layouts/app.blade.php And the actual JS Keys are defined in the src/Configuration/ProvidesScriptVariables.php Trait.
So Spark is catching the Stripe Key via config('services.stripe.key')
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey Folks,
I've looked through the Spark JS but can't quite seem to see how the Spark global object retrieves its data from the Laravel backend, such as the Stripe key, for example.
Does anyone know or can anyone point me in the right direction? Cheers.
Please or to participate in this conversation.