This commit is contained in:
Paolo A
2024-08-13 13:44:16 +00:00
parent 1bbb23088d
commit e796d76612
4001 changed files with 30101 additions and 40075 deletions

View File

@@ -21,7 +21,7 @@ trait HasDatabaseNotifications
*/
public function readNotifications()
{
return $this->notifications()->whereNotNull('read_at');
return $this->notifications()->read();
}
/**
@@ -31,6 +31,6 @@ trait HasDatabaseNotifications
*/
public function unreadNotifications()
{
return $this->notifications()->whereNull('read_at');
return $this->notifications()->unread();
}
}