@benhepburn/adonis-notifications
v1.0.0
Published
A Laravel-inspired notifications provider for AdonisJS (currently only v6)
Downloads
632
Maintainers
Readme
AdonisJS Notifications
This package creates a notifications service for use in AdonisJS v6 applications.
Install
Install the package:
npm install @benhepburn/adonis-notifications
or
pnpm install @benhepburn/adonis-notifications
or
yarn add @benhepburn/adonis-notifications
Then, configure the package for Adonis:
node ace configure @benhepburn/adonis-notifications
Configuration
Set the channel you wish to use for each notification type in config/notifications.ts.
Existing channels
Creating a channel
- Set up a new AdonisJS package and add @benhepburn/adonis-notifications to the peer and dev dependencies.
- Create a new class extending NotificationChannel and implement required members
Imports:
import { Notification, NotificationChannel } from '@benhepburn/adonis-notifications'