Skip to content

Commit 30d9556

Browse files
committed
Updated Readme
1 parent 1ae27fe commit 30d9556

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -148,30 +148,12 @@ $comment->commentAsUser($user, "Hey there!");
148148

149149
#### Deleting Replies
150150

151-
When you delete a comment, you may optionally want to delete all it's nested comments (replies). To do optionally enable this feature, set the `delete_replies_along_comments` config property in the `configs/comments.php` file to `true`.
151+
When you delete a comment, you may optionally want to delete all its nested comments (replies). To optionally enable this feature, set the `delete_replies_along_comments` config property in the `config/comments.php` file to `true`.
152152

153153
### Events
154154

155155
When a new comment is added the `BeyondCode\Comments\Events\CommentAdded` event will be dispatched.
156156
When a comment is deleted the `BeyondCode\Comments\Events\CommentDeleted` event will be dispatched.
157-
you can listen to these event and do other things as your requirements call for.
158-
159-
_App\Providers\EventServiceProvider_
160-
161-
```php
162-
use BeyondCode\Comments\Events\CommentAdded;
163-
use BeyondCode\Comments\Events\CommentDeleted;
164-
use App\Listeners\InformAdmin;
165-
166-
protected $listen = [
167-
CommentAdded::class => [
168-
InformAdmin::class,
169-
],
170-
CommentDeleted::class => [
171-
InformAdmin::class,
172-
],
173-
];
174-
```
175157

176158
### Testing
177159

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
},
3737
"scripts": {
38-
"test": "XDEBUG_MODE=coverage vendor/bin/phpunit",
38+
"test": "vendor/bin/phpunit",
3939
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
4040
},
4141
"config": {

0 commit comments

Comments
 (0)