Based upon the awesome Laravel Notifications functionality, Photon CMS can send Notifications in a number of ways.Table of Contents
- Available Notification Channels
- Implemented Notifications List
- Editing Collision Warning Notification Demo
Currently, there are 4 notification channels available:
- mail - through email
- broadcast - through Redis for HTTP sockets
- database - internally in the database so that the front-end functionality can be applied.
- FCM - push notifications
Notifications can be extended or created using these channels.
For mail notifications, you need to set the NOTIFICATION_SERVICE_EMAIL value in .env configuration file. This will tell the application which email address to use to sign emails.
Following are some currently available notifications in Photon and channels through which they are sent:
|Name||Ways of sending||Description|
|EmailChangeConfirmation||Sends a confirmation email to change the current email address (sent through the system, while logged in, to the new email address).|
|EmailChangeSuccess||Notifies the user of the successful email change.|
|InvitationIssued||Notifies a future user with an invitation email to register.|
|NewUserRegistered||Notifies system administrators that a new user has registered.|
|RegistrationConfirmation||Sends a confirmation email for registration.|
|RegistrationSuccess||Notifies the user about successful registration.|
|ResetPassword||Notifies the user of a successful password change.|
|UserSubscribed||Notifies the user when another user subscribes to dynamic module entry that he is currently subscribed to.|
|UserUnsubscribed||Notifies the user when another user unsubscribes from dynamic module entry that he is currently subscribed to.|
Following video describes one of the implemented notification workflows designed to warn users if they're trying to edit the same entry.