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

peter_opps's avatar

Can Laravel Sail only handle one request at a time?

Hello, I am currently building a Dashboard that performs multiple "fetch()" requests to the server to get data for the different charts. I am developing locally with Laravel Sail under Windows/WSL.

Looking at the Chrome DevTools Network Waterfall it looks like all requests get sent at the same time but the Laravel server only handles them one after the other and thus they load relatively slow.

Does Laravel Sail only handle one request at a time? It it only running on one Kernel Thread? Is there a way to allow multithreading multiple requests?

0 likes
7 replies
maxflex's avatar

You can add PHP_CLI_SERVER_WORKERS variable right to your .env to increase the number of workers spawned by PHP's built-in server.

// .env
// Process 3 requests at a time
PHP_CLI_SERVER_WORKERS=3

This works with Laravel Sail.

4 likes
dimsav's avatar

@maxflex Thank you! ❤️

Note to self: After updating the .env make sure to restart sail.

brisket's avatar

It works. Confirmed. Saved a LOT of my time. Thanks!

Cala's avatar

@maxflex thank you! This should be added in the official sail documentation somewhere :)

Please or to participate in this conversation.