Setting up a Laravel Reverb instance
Laravel Reverb is a first-party WebSocket server for Laravel applications. It’s open source and uses the Pusher protocol, making it the first choice for real-time communication between client and server in Laravel applications. If you want to learn more about Reverb, check out Real-time games with Laravel on Laracasts. While you can install it as a package into your existing application, it often makes sense to have a dedicated WebSocket server for all your applications. Herd provides a convenient way to set up a dedicated Reverb instance on your machine with a few clicks. It even comes secured with an optional TLS certificate.Connecting from your Laravel application
Laravel Reverb starts the WebSocket server on port8080 but you can change it when creating a new service in case you’re already running a different service on that port or want to run multiple instances in parallel.
After installing Reverb, you can use the following environment variables to configure the service for your application.