src/User/User.php
public function getNewNotificationCount()
    {
        return $this->getUnreadNotifications()->filter(function ($notification) {
            return $notification->created_at > $this->read_notifications_at ?: 0;
        })->count();
    }
public function getNewNotificationCount()
    {
        return $this->getUnreadNotifications()->filter(function ($notification) {
            return $notification->created_at > $this->read_notifications_at ?: 0;
        })->count();
    }
public function getNewNotificationCount ( ) { return $ this -> getUnreadNotifications ( ) -> filter ( function ( $ notification ) { return $ notification -> created_at > $ this -> read_notifications_at ? : 0 ; } ) -> count ( ) ; }
Get the number of new, unseen notifications for the user.

@return int
Get the number of new unseen notifications for the user .