Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm authored Apr 19, 2021
1 parent acf8b5c commit 812c074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Route::post('posts/{post}/comments', function (Post $post) {
});
```

Here's the methods now available to your model:
Here are the methods now available to your model:

```php
$comment->broadcastAppend();
Expand All @@ -375,7 +375,7 @@ $comment->broadcastUpdate();
$comment->broadcastRemove();
```

These methods will assume you want to broadcast the Turbo Streams to your model's channel. However, you will also find the alternative methods where you can specify either a model or the broadcasting channels you want to send the broadcasts to:
These methods will assume you want to broadcast the Turbo Streams to your model's channel. However, you will also find alternative methods where you can specify either a model or the broadcasting channels you want to send the broadcasts to:

```php
$comment->broadcastAppendTo($post);
Expand Down

0 comments on commit 812c074

Please sign in to comment.