class NotificationRepository

Methods

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

<p>Find a user's notifications.</p>

void
markAllAsRead(User $user)

<p>Mark all of a user's notifications as read.</p>

Details

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

<p>Find a user's notifications.</p>

Parameters

User $user
int|null $limit
int $offset

Return Value

Collection

void markAllAsRead(User $user)

<p>Mark all of a user's notifications as read.</p>

Parameters

User $user

Return Value

void