class NotificationRepository

Methods

Collection
findByUser(User $user, int|null $limit = null, int $offset = 0)

Find a user's notifications.

void
markAllAsRead(User $user)

Mark all of a user's notifications as read.

Details

Collection findByUser(User $user, int|null $limit = null, int $offset = 0)

Find a user's notifications.

Parameters

User $user
int|null $limit
int $offset

Return Value

Collection

void markAllAsRead(User $user)

Mark all of a user's notifications as read.

Parameters

User $user

Return Value

void