Skip to content

Not receiving notifications #8

@jcsoriano

Description

@jcsoriano

Environment
PHP: 7.4.10
Laravel: 7.28.3

Hi, thank you for the package! I tried a simple use case but my pagerduty account isn't receiving it. I don't see any exceptions being thrown, but I do see via Telescope that the Notification is firing. Am I missing something? I didn't see from the docs that I should add anything in .env, so I went straight to this.

Here is BasicNotification.php

    public function via($notifiable)
    {
        return [PagerDutyChannel::class];
    }

    public function toPagerDuty($notifiable) : PagerDutyMessage
    {
        return PagerDutyMessage::create()
            ->setSummary('Sample Message');
    }

Here is how I ran it:

Notification::route(PagerDutyChannel::class, '[my integration key]')->notify(new BasicNotification);

Here Telescope shows the Notification fired:

image

But I receive nothing in my PagerDuty account:

image

Any pointers to successfully use your package will be much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions