Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bradders's avatar

Slack Notifications

I'm trying to setup Slack notifications for my project but they don't seem to be coming through to my slack workspace. I think I've followed the Notifications docs correctly and added the following parts to my code.

Other than adding Bot Scopes to my Slack app, is there anything else I need to do in Slack? What's confusing is that I have an older project/app that is connected to Slack just fine, but that project uses webhooks and the user model's routeNotificationForSlack returns the webhook url instead, which seems to not be the suggested way now...

app/Listeners/UserRegistered.php

app/Notifications/UserJoined.php

composer.json

"laravel/framework": "^12.0",
 "laravel/slack-notification-channel": "^3.6"

user model

public function routeNotificationForSlack(Notification $notification): mixed
{
    return "#users";
}

.env

SLACK_BOT_USER_OAUTH_TOKEN=xoxb-beepboopbeep
SLACK_BOT_USER_DEFAULT_CHANNEL="#general"
0 likes
4 replies
bradders's avatar

I added my chat:write, chat:write.public, and chat:write.customize scopes as Bot Token Scopes, assume that's correct, instead of User Token Scopes?

I haven't published/distributed my app as it's only being used to have my laravel app ping my own workspace where the app is installed.

Please or to participate in this conversation.