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

phanhero's avatar

Non-blocking API call using Laravel

Hi all. I am writing a Laravel webapp and trying to make a call to an external API to send sms. I want to write a non-blocking call to sms API so that I can continue executing the rest of code after firing sms sending API. Is there a way to acheive this?

Have tried using guzzle to make asynchronous call and also Queue in Laravel. However the code stops at SMS API call and wait for response. Is there any way to write non-blocking API call?

0 likes
1 reply
joshhanley's avatar

You said you trying using queues, but that wasn't working. A queue is what you are after.

Can you share some of your code you were using to add the SMS call to the queue? It's possible it wasn't getting added to the queue properly.

Please or to participate in this conversation.