Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions broadcasting.md
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ If you would like to stop listening to a given event without [leaving the channe

```js
Echo.private(`orders.${this.order.id}`)
.stopListening('OrderShipmentStatusUpdated')
.stopListening('OrderShipmentStatusUpdated');
```

<a name="leaving-a-channel"></a>
Expand Down Expand Up @@ -1145,7 +1145,7 @@ return [new Channel($this->user)];
If you need to determine the channel name of a model, you may call the `broadcastChannel` method on any model instance. For example, this method returns the string `App.Models.User.1` for an `App\Models\User` model with an `id` of `1`:

```php
$user->broadcastChannel()
$user->broadcastChannel();
```

<a name="model-broadcasting-event-conventions"></a>
Expand Down