public function addNotification($notifiables, NotificationInterface $notification, $flush = false)
    {
        foreach ($notifiables as $notifiable) {
            $entity = $this->getNotifiableEntity($notifiable);

            $notifiableNotification = new NotifiableNotification();
            $entity->addNotifiableNotification($notifiableNotification);
            $notification->addNotifiableNotification($notifiableNotification);

            $event = new NotificationEvent($notification, $notifiable);
            $this->dispatcher->dispatch(MgiletNotificationEvents::ASSIGNED, $event);
        }

        $this->flush($flush);
    }