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