Laravel Octane is an official package for the Laravel framework that dramatically boosts application performance by running Laravel on high-performance application servers like Swoole or RoadRunner.
Instead of reloading the Laravel framework on every HTTP request (as with traditional PHP-FPM setups), Octane keeps the application in memory, avoiding repeated bootstrapping. This makes your Laravel app much faster.
Laravel Octane uses persistent worker servers (e.g., Swoole or RoadRunner), which:
Bootstrap the Laravel application once,
Then handle incoming requests repeatedly without restarting the framework.
| Benefit | Description |
|---|---|
| ⚡ Faster performance | Up to 10x faster than traditional PHP-FPM setups |
| 🔁 Persistent workers | No full reload on every request |
| 🌐 WebSockets & real-time support | Built-in support via Swoole/RoadRunner |
| 🧵 Concurrency | Parallel task handling possible |
| 🔧 Built-in tools | Task workers, route reload watching, background tasks, etc. |