code: public function markAllNotificationsAsRead()
      {
          /** @var \Unite\UnisysApi\Models\User $object */
          $object = Auth::user();
          $object->unreadNotifications->markAsRead();
  
          \Cache::tags('response')->flush();
  
          return $this->successJsonResponse();
      }
docs: Mark all as read
  
  Mark all users unread notifications as read
  
  @return \Illuminate\Http\JsonResponse