From 09d53eea674db7daa8bb65aa8fa7f2ca95e62b8d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 10 Oct 2022 09:00:52 -0500 Subject: [PATCH] return on non empty response from channels --- src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php index 3cd1cd9ecc84..339283e4ea30 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php @@ -117,7 +117,7 @@ protected function verifyUserCanAccessChannel($request, $channel) $handler = $this->normalizeChannelHandlerToCallable($callback); - if ($result = $handler($this->retrieveUser($request, $channel), ...$parameters)) { + if (! empty($result = $handler($this->retrieveUser($request, $channel), ...$parameters))) { return $this->validAuthenticationResponse($request, $result); } }