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

njames180's avatar

Spark::Testing API

Having some issues testing spark api objects we have added to spark.

How do I add the token to the request in spark ? as part of the query string api_token=... or is there a way in the "Integrated Testing" included with laravel to make this simple?

Thanks.

0 likes
1 reply
njames180's avatar

So here is the thought ... given we can curl the api and provide a token (not dissimilar to postman) is there a simple method in the 'integrated' laravel testing to add a header or token to the request?

Please or to participate in this conversation.