multiplex user notifications over a single private channel

This commit is contained in:
2026-01-11 12:06:27 +01:00
parent 9b70b09173
commit 9fd72c6ea4
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -52,9 +52,7 @@ class UserController extends Controller
$admins->pluck('id')->toArray()
);
Log::info('Broadcasting UserCreated event', ['user_id' => $user->id]);
broadcast(new UserCreated($user));
Log::info('Event broadcasted');
return response()->json(['message' => 'User created successfully']);
}