~/docs
Resonate
Resonate
1.x 1.5.0, current
Resonate
Toggle sidebar
Resonate
webpatser/resonate 1.5.0

Resonate 1.x

Installation

Install Resonate in a fresh Laravel app or swap it in for laravel/reverb.

Resonate requires PHP ^8.6 and Laravel ^13.0.

Fresh app

composer require webpatser/resonate
php artisan resonate:install
php artisan resonate:start

resonate:install does the following:

  • Adds REVERB_APP_ID, REVERB_APP_KEY, REVERB_APP_SECRET, REVERB_HOST, REVERB_PORT and REVERB_SCHEME to your environment file, together with the matching VITE_REVERB_* variables.
  • Publishes config/reverb.php.
  • Adds a reverb connection to config/broadcasting.php when none exists.
  • When routes/channels.php is missing, asks whether to enable event broadcasting and, on yes, runs install:broadcasting.
  • Asks whether to set BROADCAST_DRIVER or BROADCAST_CONNECTION to reverb in your environment file.

When it finishes it prints three things to review before production:

  • Tighten allowed_origins in config/reverb.php. It is set to ['*'].
  • Set REVERB_SERVER_HOST=127.0.0.1 when Resonate runs behind a reverse proxy, instead of binding 0.0.0.0.
  • Rotate the generated REVERB_APP_SECRET for non-development environments.

Swap from laravel/reverb

composer remove laravel/reverb
composer require webpatser/resonate

Nothing else changes:

  • Same config/reverb.php. Resonate reads the existing file.
  • New artisan commands: resonate:start, resonate:restart, resonate:reload and resonate:install. Update supervisor, systemd and Docker entrypoints accordingly.
  • Same laravel:reverb:restart cache key. Running servers restart on the same signal.
  • Same Pusher wire protocol (byte-exact JSON framing) and the same Pusher-compatible REST API.
  • Front-end Echo and pusher-js configs stay as they are.

Note: A scaled cluster cannot run Resonate and laravel/reverb nodes side by side. Resonate uses a pure JSON envelope for cross-node messages, so the migration is all at once. See Scaling.

Next steps