#68 - finish notification class. Content notification on validate brief working

This commit is contained in:
isUnknown 2024-12-18 13:56:21 +01:00
parent 3fb043210e
commit fa36c9ef4a
12 changed files with 246 additions and 24 deletions

View file

@ -1,5 +1,7 @@
<?php
use adrienpayet\notifications\Notification;
/**
* Send a notification to all users who manage a specific project, excluding the user sending the notification.
*
@ -26,7 +28,8 @@
? Yaml::decode($otherUser->notifications()->value())
: [];
$notifications[] = $notificationData;
$newNotification = new Notification($notificationData);
$notifications[] = $newNotification->toArray();
$otherUser->update([
'notifications' => $notifications