Skip to content

v0.36.0 — notifications

Choose a tag to compare

@tshafer tshafer released this 11 Jul 01:02

Send a message to one or many recipients over pluggable channels: notify(user, new InvoicePaid(4200)). A Notification declares via() (channels) and per-channel content (toMail, toArray).

Built-in channels: MailChannel (via the mailer, routed by email or routeNotificationFor), DatabaseChannel (inserts toArray into a table), and ArrayChannel (for tests). Set shouldQueue = true to deliver from a queued job — this is where the mail and queue layers compose. A custom channel is one send method. New generator keel make:notification.

See docs/notifications.md.