markAllAsRead() public method

Mark all of a user's notifications as read.
public markAllAsRead ( User $user ) : void
$user Flarum\Core\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);
 }