messages departments section

This commit is contained in:
amazuecos
2025-03-20 08:20:50 +01:00
parent d417db18e2
commit 6e96beeec8
26 changed files with 1045 additions and 306 deletions

View File

@ -59,4 +59,12 @@ class ChatNotification extends Model
}
return $status;
}
public function setNotificationsAsViewed(array $notificationIds) : bool
{
return $this->update($notificationIds,["viewed" => 1]);
}
public function setNotificationsAsUnViewed(array $notificationIds) : bool
{
return $this->update($notificationIds,["viewed" => 0]);
}
}