Closed nathan-io closed 2 years ago
@nathan-io you defined the routeNotificationForSlack
on your notification class instead of the user model. If you move it there, the notification will be sent. See the docs here: https://laravel.com/docs/9.x/notifications#routing-slack-notifications
🤦♂️ Thank you, that indeed resolved it.
Description:
I see that
to()
is not currently supported as noted in #54 .We're not using
to()
, as the channel is configured within the Slack App settings. In a greenfield project, we're still unable to send Slack notifications.There doesn't appear to be a way to even create the legacy Incoming Webhooks anymore, and Slack's current webhook docs list creating a Slack App as the first step.
On the "Custom Integrations" area of the workspace admin dashboard, there's a warning:
In the Slack workspaces I have admin permissions on, there's no option to even create a custom integration. You must create a Slack App.
Steps To Reproduce:
Create a Slack App and an incoming webhook on that app. Add the webhook URI in
.env
and attempt to send a notification to Slack.Our current implementation within a Notification class looks like: