How can I access variables within a Guzzle promise "then"?
I’m trying to make use of Guzzle to send two POST requests one after another (first to create a user, then to assign them a segment) and I seem to be struggling with accessing the variables I’ve defined throughout. I’ve got the following in my function: $data = [ ’email’ => $email, ]; if (!empty($name))… Read More How can I access variables within a Guzzle promise "then"?