You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BaseNotification: one definition, every channel #2
Define the message and data once and get mail, database, broadcast, FCM and SMS (javaabu/sms-notifications) formats. Channels are chosen per notifiable preference.
Notifiables use Javaabu\Notifications\Concerns\Notifiableinstead of Laravel's Notifiable (same API), so notifications() returns the package's DatabaseNotification model and the broadcast channel works with any guard.
Channel names sms and fcm are aliases: sms resolves to the channel of javaabu/sms-notifications' configured driver (sms.default), fcm to NotificationChannels\Fcm\FcmChannel. FCM is optional (suggest) and skipped when it isn't installed.
Preferences are stored per type key (OrderShippedNotification → order-shipped) with * as the fallback; notifications.required_channels (default ['database']) can't be turned off.
The notifiable's locale comes from HasLocalePreference or the locale attribute (notifications.locale_attribute), and every channel's text, including the mail layout's own words, is built in it.
Activity
n4ff4h commentedon Nov 5, 2026
Decisions for future readers:
Javaabu\Notifications\Concerns\Notifiableinstead of Laravel'sNotifiable(same API), sonotifications()returns the package'sDatabaseNotificationmodel and the broadcast channel works with any guard.smsandfcmare aliases:smsresolves to the channel of javaabu/sms-notifications' configured driver (sms.default),fcmtoNotificationChannels\Fcm\FcmChannel. FCM is optional (suggest) and skipped when it isn't installed.broadcastisn't a preference; it's added automatically next todatabasewhen live updates are on (Live notifications with Reverb (optional) #7).OrderShippedNotification→order-shipped) with*as the fallback;notifications.required_channels(default['database']) can't be turned off.HasLocalePreferenceor thelocaleattribute (notifications.locale_attribute), and every channel's text, including the mail layout's own words, is built in it.