Commaaa2
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user