Skip to content

Commit 5d3ebd6

Browse files
committed
docs
1 parent b978848 commit 5d3ebd6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,17 @@ Scheduler::init()
329329

330330
This will store a single scheduler for the `$user`.
331331

332+
## Events
333+
334+
Mailator has few events you can use.
335+
336+
If your mailable class extends the `Binarcode\LaravelMailator\Contracts\Beforable`, you will be able to inject the `before` method, that will be called right before the sending the email.
337+
338+
If your mailable class extends the `Binarcode\LaravelMailator\Contracts\Afterable`, you will be able to inject the `before` method, that will be called right after the mail has being sent.
339+
340+
341+
And latest, after each mail has being sent, mailator will fire the `Binarcode\LaravelMailator\Events\ScheduleMailSentEvent` event, so you can listen for it.
342+
332343
## Run
333344

334345
Now you have to run a scheduler command in your Kernel, and call:

0 commit comments

Comments
 (0)