{"url":"https://medium.com/@developerawam/laravel-reverb-multi-app-one-websocket-server-for-all-your-projects-e168fb653ca8","title":"Share One Reverb Server Across Laravel Apps","domain":"medium.com","imageUrl":"https://images.pexels.com/photos/2881228/pexels-photo-2881228.jpeg?auto=compress&cs=tinysrgb&h=650&w=940","pexelsSearchTerm":"Laravel WebSocket server","category":"Tech","language":"en","slug":"6f689eca","id":"6f689eca-be33-4217-bc9d-1eb51aad47af","description":"Article guides setting up one Laravel Reverb WebSocket server to handle multiple Laravel projects.","summary":"## TL;DR\n- Article guides setting up one Laravel Reverb WebSocket server to handle multiple Laravel projects.\n- Define multiple apps with unique **app_id** in the host project's **config/reverb.php**.\n- Saves costs and simplifies management versus separate servers or paid services like Pusher.[[1]](https://laravel.com/docs/13.x/reverb)\n\n## The story at a glance\nDeveloper Awam explains how to share a single self-hosted **Laravel Reverb** WebSocket server across multiple Laravel apps, avoiding redundant setups or third-party fees. The tutorial covers creating a host project, registering other apps, and starting the server. This builds on Reverb's native multi-app support in Laravel 11+ docs.[[2]](https://medium.com/@developerawam/laravel-reverb-multi-app-one-websocket-server-for-all-your-projects-e168fb653ca8)[[1]](https://laravel.com/docs/13.x/reverb)\n\n## Key points\n- Install Reverb in a \"host\" Laravel project via `php artisan install:broadcasting` and select Reverb.[[1]](https://laravel.com/docs/13.x/reverb)\n- Edit **config/reverb.php** to list multiple apps under `apps`, each with unique `app_id`, `key`, `secret`, host/port details.\n- Client projects set `BROADCAST_DRIVER=reverb` and matching `REVERB_APP_ID`, `REVERB_APP_KEY`, `REVERB_APP_SECRET` pointing to the host server.[[1]](https://laravel.com/docs/13.x/reverb)\n- Run `php artisan reverb:start` on host (defaults to port **8080**) to serve all registered apps.\n- Apps stay isolated by `app_id`; scaling needs shared Redis for pub/sub across servers.[[1]](https://laravel.com/docs/13.x/reverb)\n- Replaces multiple Pusher subscriptions; one Reverb handles real-time broadcasts like chats or notifications.\n\n## Details and context\nThe article targets developers with several Laravel projects needing real-time features but tired of running separate Reverb instances or paying for services like Pusher. Reverb, introduced in **Laravel 11**, is a PHP-based WebSocket server that integrates with Laravel Broadcasting—no Node.js required.\n\nSetup assumes the host project has Reverb installed and configured with env vars like `REVERB_HOST`. Client apps connect via Laravel Echo (JS client) using their app credentials. For production, use Supervisor to daemonize `reverb:start --debug`, expose via Nginx proxy on port 443 (wss://), and add TLS certs in config.\n\nExample config snippet from docs:\n```php\n'apps' => [\n    ['app_id' => 'my-app-one', /* key, secret, etc. */],\n    ['app_id' => 'my-app-two', /* ... */],\n],\n```\nAll apps must share Redis if horizontally scaling Reverb servers.[[1]](https://laravel.com/docs/13.x/reverb)\n\n## Why it matters\nOne shared Reverb cuts infrastructure overhead for teams with multiple apps, enabling real-time features like live updates without vendor lock-in. Developers save on hosting multiple servers or subscriptions, while keeping app isolation via unique IDs. Watch Laravel Reverb updates for easier managed hosting on **Laravel Cloud** or Forge, plus scaling tweaks for high-traffic setups.[[3]](https://laravel.com/blog/introducing-websockets-for-laravel-cloud-powered-by-laravel-reverb)","hashtags":["#laravel","#reverb","#websocket","#broadcasting","#realtime","#php"],"sources":[{"url":"https://medium.com/@developerawam/laravel-reverb-multi-app-one-websocket-server-for-all-your-projects-e168fb653ca8","title":"Original article"},{"url":"https://laravel.com/docs/13.x/reverb","title":""},{"url":"https://laravel.com/blog/introducing-websockets-for-laravel-cloud-powered-by-laravel-reverb","title":""}],"viewCount":3,"publishedAt":"2026-04-06T19:27:23.638Z"}