Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Flarum
Core
User
getUnreadNotificationsCount
Flarum\Core\User::getUnreadNotificationsCount PHP Method
User Class Documentation
Show file
Open project: flarum/core
getUnreadNotificationsCount()
public
method
Get the number of unread notifications for the user.
public
getUnreadNotificationsCount
( ) :
integer
return
integer
public function getUnreadNotificationsCount() { return $this->getUnreadNotifications()->count(); }
User
accessTokens
activate
addPreference
boot
can
cannot
changeAvatarPath
changeBio
changeEmail
changePassword
checkPassword
getAlertableNotificationTypes
getAvatarUrlAttribute
getGate
getLocaleAttribute
getNewNotificationsCount
getNotificationPreferenceKey
getPermissions
getPreference
getPreferencesAttribute
getSession
getUnreadNotifications
getUnreadNotificationsCount
groups
hasPermission
hasPermissionLike
isAdmin
isGuest
markAllAsRead
markNotificationsAsRead
notifications
permissions
posts
read
register
rename
requestEmailChange
setGate
setHasher
setPasswordAttribute
setPreference
setPreferencesAttribute
setSession
shouldAlert
shouldEmail
updateLastSeen