you are reading the documentation for version
v1
our latest version is
v2
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
Events
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.