#68 - finish notification class. Content notification on validate brief working
This commit is contained in:
parent
3fb043210e
commit
fa36c9ef4a
12 changed files with 246 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue