Skip to content

Commit 1cedb05

Browse files
committed
Variable name change
1 parent 19d007e commit 1cedb05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Channel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function create(int $userId, int $receiverId, string $channelName)
6060

6161
broadcast(new CreateChannel($channel))->toOthers();
6262

63-
$data['message'] = "Channel created successfully.";
64-
$data['data'] = $channel;
65-
return $data;
63+
$response['message'] = "Channel created successfully.";
64+
$response['data'] = $channel;
65+
return $response;
6666
}
6767

6868
public function update(int $userId, int $channelId, $channelName)

0 commit comments

Comments
 (0)