sistrum 0.1.0
sistrum: ^0.1.0 copied to clipboard
Multi-channel notifications for Maat applications.
Sistrum Notifications #
Mail, database, custom notification channels, delivery events, and testing fakes for Maat applications.
class WelcomeNotification extends Notification {
@override
List<String> via(Object notifiable) => const ['mail'];
@override
MailMessage toMail(Object notifiable) =>
MailMessage().subject('Welcome').line('Thanks for joining.');
}
await user.notify(WelcomeNotification());
Register NotificationServiceProvider and include sistrumMigrations when
using the database channel. New Ptah applications include both automatically.