$notification, 'activity' => $this->activityRepository->find($notification->getRelatedEntityId()), ]; } public function supports(Notification $notification, array $options = []): bool { return Activity::class === $notification->getRelatedEntityClass(); } }