From d535b28d67abbc91a035b6d572b8647630512a10 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 13 Jul 2026 15:50:52 +0200 Subject: [PATCH] Update src/Bootstrappers/BroadcastingConfigBootstrapper.php Use `instance` instead of `singleton` in `revert()` (they're pretty much equivalent) Co-authored-by: Samuel Stancl --- src/Bootstrappers/BroadcastingConfigBootstrapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bootstrappers/BroadcastingConfigBootstrapper.php b/src/Bootstrappers/BroadcastingConfigBootstrapper.php index 3ffd9337..f609c8ff 100644 --- a/src/Bootstrappers/BroadcastingConfigBootstrapper.php +++ b/src/Bootstrappers/BroadcastingConfigBootstrapper.php @@ -122,8 +122,8 @@ class BroadcastingConfigBootstrapper implements TenancyBootstrapper public function revert(): void { // Revert the bound BroadcastManager and Broadcaster singletons back to their original state - $this->app->singleton(BroadcastManager::class, fn () => $this->originalBroadcastManager); - $this->app->singleton(BroadcasterContract::class, fn () => $this->originalBroadcaster); + $this->app->instance(BroadcastManager::class, $this->originalBroadcastManager); + $this->app->instance(BroadcasterContract::class, $this->originalBroadcaster); // Clear the resolved Broadcast facade instance so that it gets re-resolved as the central BroadcastManager Broadcast::clearResolvedInstance();