Knowledge Base

Empty filter

Laravel remove Reverb

Remove Reverb Service Provider and Configuration
In your config/broadcasting.php, if reverb is set as the default broadcaster, change it to something else (like log or null):

php
Copy
Edit
'default' => env('BROADCAST_DRIVER', 'log'),
php
1 line, 45 characters

Copy code
Then delete the reverb config entry if present under connections.

✅ 2. Delete config/reverb.php
If the config file exists, remove it:

bash
Copy
Edit
rm config/reverb.php
bash
1 line, 21 characters

Copy code
✅ 3. Remove from .env
Clean any Reverb-related entries in your .env file:

env
Copy
Edit
BROADCAST_DRIVER=reverb
REVERB_APP_ID=...
REVERB_APP_KEY=...
REVERB_APP_SECRET=...
REVERB_HOST=...
env
5 lines, 99 characters

Copy code
✅ 4. Remove Package via Composer
Uninstall Laravel Reverb:

bash
Copy
Edit
composer remove laravel/reverb
bash
1 line, 31 characters

Copy code
✅ 5. Unregister Service Providers (if added manually)
If you added anything like this in config/app.php, remove it:

php
Copy
Edit
Laravel\Reverb\ReverbServiceProvider::class,
php
1 line, 45 characters

Copy code
(Usually not needed if you used Laravel's package auto-discovery.)

✅ 6. Remove WebSocket Server (optional)
If you're running php artisan reverb:start as a service (e.g., in supervisord, systemd, or a Procfile), remove that config.

✅ 7. Clear Config & Cache
Make sure everything is fresh:

bash
Copy
Edit
php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear
bash
4 lines, 96 characters

Copy code
✅ 8. Optional: Remove Related JS (Echo + Reverb)
If you added Laravel Echo or Reverb client in your frontend (like in resources/js/bootstrap.js):

Remove Echo and Reverb-related code

Run:

bash
Copy
Edit
npm uninstall laravel-echo
bash
1 line, 27 characters

Copy code
That should fully clean Laravel Reverb from your project.

Want me to help double-check if it's gone or you’re seeing any errors after removing?







You said:
thank you
ChatGPT said:
You're very welcome! 😊
If you need help setting up something else or want to swap Reverb with another solution later (like Pusher or Laravel WebSockets), just let me know.

Published
Back to Index