Add notification preferences and admin governance

This commit is contained in:
Codex
2026-07-10 18:33:39 -05:00
parent eb9456e1bd
commit de9e473d3b
28 changed files with 734 additions and 20 deletions
@@ -27,6 +27,12 @@ class ExchangeEventNotification extends Notification
*/
public function via(object $notifiable): array
{
$preferences = $notifiable->notificationPreference()->firstOrCreate([]);
if (! $preferences->allows($this->type, 'database')) {
return [];
}
return ['database'];
}