Notification Settings
Notification configuration and management.
Notification Types
System Notifications
- System updates
- Maintenance alerts
- Security alerts
- Feature announcements
Activity Notifications
- New messages
- Campaign updates
- Grievance status changes
- Task assignments
Reminder Notifications
- Upcoming events
- Pending tasks
- SLA deadlines
- Follow-ups
Channel Configuration
Email Notifications
// Enable/disable email notifications
$user->notification_preferences = [
'email' => [
'enabled' => true,
'types' => ['system', 'activity', 'reminders'],
],
];
SMS Notifications
// SMS notification settings
$user->notification_preferences = [
'sms' => [
'enabled' => true,
'types' => ['urgent', 'reminders'],
],
];
Push Notifications
// Push notification settings
$user->notification_preferences = [
'push' => [
'enabled' => true,
'types' => ['activity', 'reminders'],
],
];
Quiet Hours
Configuration
// Set quiet hours
$user->quiet_hours = [
'enabled' => true,
'start' => '22:00',
'end' => '08:00',
'timezone' => 'Asia/Kolkata',
];
Notification Templates
Custom Templates
- Welcome message
- Password reset
- Status updates
- Reminders
Best Practices
- Respect Preferences: Honor user preferences
- Opt-out Easy: Make it easy to unsubscribe
- Frequency Control: Allow frequency control
- Channel Choice: Let users choose channels
- Quiet Hours: Respect quiet hours