gpressutto5 / laravel-slack

:hash: Slack notification for Laravel as it should be. Easy, fast, simple and highly testable.
MIT License
288 stars 41 forks source link

Sending to multiple Slack instances #8

Closed 1stevengrant closed 6 years ago

1stevengrant commented 6 years ago

I'm looking to have our app send messages to multiple Slack groups.

Is that possible with this package?

gpressutto5 commented 6 years ago

Hi @1stevengrant, thank you for the issue! Unfortunately the purpose of this package is to make it easy to send messages to only 1 workplace. If you want to send to multiple workplaces then you should use the native Laravel solution: Slack Notifications.

1stevengrant commented 6 years ago

Hi @1stevengrant, thank you for the issue! Unfortunately the purpose of this package is to make it easy to send messages to only 1 workplace. If you want to send to multiple workplaces then you should use the native Laravel solution: Slack Notifications.

Huh - I didn't know you could send to multiple workspaces natively. Do you know how that would work given the webhook urls are usually set in .env - like if users registering on an app want to plugin their own Slack webhook url when something happens on the app.

gpressutto5 commented 6 years ago

@1stevengrant The webhook urls are not set in .env. The native solution do exactly that: each user will set their own webhook.

Take a look at the docs: Routing Slack Notifications.