you are reading the documentation for version
v2
our latest version is
v3
make sure to select the correct version.
to check your version use:
to check your version use:
composer show lara-zeus/replies
On this page
Available Events
Replies will fire these events:
LaraZeus\Replies\Events\CommentAddedLaraZeus\Replies\Events\CommentDeleted
Register a Listener:
- First, create your listener:
1php artisan make:listener SendNotification --event=CommentAdded
- Second, register the listener in your
EventServiceProvider
1protected $listen = [2 //...3 CommentAdded::class => [4 SendNotification::class,5 ],6];
- Finally, you can receive the form object in the
handlemethod and do whatever you want.
Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.