Mark all of a user's notifications as read.
public markAllAsRead ( |
||
$user | ||
return | void |
/** * @param ReadAllNotifications $command * @throws \Flarum\Core\Exception\PermissionDeniedException */ public function handle(ReadAllNotifications $command) { $actor = $command->actor; $this->assertRegistered($actor); $this->notifications->markAllAsRead($actor); }