mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
messages departments section
This commit is contained in:
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user